#4F239B#4F239B

#4F239B is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.5% C 0.179 H 293.0°. Best body text is #FFFFFF at 10.26:1 contrast (WCAG AA passes).

Color values

HEX#4F239B
RGBrgb(79, 35, 155)
HSLhsl(262, 63%, 37%)
HSVhsv(262, 77%, 61%)
CMYKcmyk(49%, 77.4%, 0%, 39.2%)
CIE-LABlab(27.38, 46.99, -57.48)
CIE-LCHlch(27.38, 74.24, 309.27°)
OKLaboklab(39.52% 0.07 -0.165)
OKLCHoklch(39.52% 0.179 293)
XYZxyz(9.7402, 5.2306, 31.5004)
Luminance0.0523 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F239B #6F9B23
analogous
#23339B #4F239B #8B239B
triadic
#4F239B #9B4F23 #239B4F
tetradic
#4F239B #9B2333 #6F9B23 #239B8B
square
#4F239B #9B2333 #6F9B23 #239B8B
split-complementary
#4F239B #9B8B23 #339B23
monochromatic
#1C0C37 #361869 #4F239B #682ECD #8C5EDB

Accessibility & contrast

On white

10.26
#4F239B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#4F239B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F239B
10.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F239B#FFFFFF#000000##FFFFFF
##4F239B1.0010.262.0510.26
#FFFFFF10.261.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429E
Deuteranopia (green-blind)
#003E99
Tritanopia (blue-blind)
#37445E
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4f239b;
/* rgb */ color: rgb(79, 35, 155);
/* oklch */ color: oklch(39.5% 0.179 293.0);
Tailwind
colors: {
  custom: {
    50: '#8863ba',
    500: '#4f239b',
    950: '#000000',
  },
}
SCSS
$custom: #4f239b;
$custom-light: #8863ba;
$custom-dark: #000000;
JSON
{
  "hex": "#4f239b",
  "rgb": {
    "r": 79,
    "g": 35,
    "b": 155
  },
  "hsl": {
    "h": 262,
    "s": 63.158,
    "l": 37.255
  },
  "oklch": {
    "l": 0.3952,
    "c": 0.17917,
    "h": 293
  },
  "luminance": 0.05231
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4F239B

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

Preview Lab → · Contrast checker → · Palette generator →

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