#4F239A#4F239A

#4F239A is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.4% C 0.178 H 293.2°. Best body text is #FFFFFF at 10.30:1 contrast (WCAG AA passes).

Color values

HEX#4F239A
RGBrgb(79, 35, 154)
HSLhsl(262, 63%, 37%)
HSVhsv(262, 77%, 60%)
CMYKcmyk(48.7%, 77.3%, 0%, 39.6%)
CIE-LABlab(27.29, 46.72, -57.02)
CIE-LCHlch(27.29, 73.72, 309.33°)
OKLaboklab(39.43% 0.0702 -0.1636)
OKLCHoklch(39.43% 0.178 293.2)
XYZxyz(9.6566, 5.1971, 31.0599)
Luminance0.0520 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F239A #6E9A23
analogous
#23329A #4F239A #8B239A
triadic
#4F239A #9A4F23 #239A4F
tetradic
#4F239A #9A2332 #6E9A23 #239A8B
square
#4F239A #9A2332 #6E9A23 #239A8B
split-complementary
#4F239A #9A8B23 #329A23
monochromatic
#1C0C36 #351868 #4F239A #692ECC #8B5DDA

Accessibility & contrast

On white

10.30
#4F239A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#4F239A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F239A
10.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F239A#FFFFFF#000000##FFFFFF
##4F239A1.0010.302.0410.30
#FFFFFF10.301.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429D
Deuteranopia (green-blind)
#003E98
Tritanopia (blue-blind)
#38445D
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4f239a;
/* rgb */ color: rgb(79, 35, 154);
/* oklch */ color: oklch(39.4% 0.178 293.2);
Tailwind
colors: {
  custom: {
    50: '#8863b9',
    500: '#4f239a',
    950: '#000000',
  },
}
SCSS
$custom: #4f239a;
$custom-light: #8863b9;
$custom-dark: #000000;
JSON
{
  "hex": "#4f239a",
  "rgb": {
    "r": 79,
    "g": 35,
    "b": 154
  },
  "hsl": {
    "h": 262.185,
    "s": 62.963,
    "l": 37.059
  },
  "oklch": {
    "l": 0.39427,
    "c": 0.17804,
    "h": 293.2
  },
  "luminance": 0.05197
}

Semantic roles & 50–950 ramp

primary
#4F239A
secondary
#9ABF5A
accent
#E642A9
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #4F239A

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#4F239A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva