#4F239C#4F239C

#4F239C is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.6% C 0.180 H 292.7°. Best body text is #FFFFFF at 10.23:1 contrast (WCAG AA passes).

Color values

HEX#4F239C
RGBrgb(79, 35, 156)
HSLhsl(262, 63%, 37%)
HSVhsv(262, 78%, 61%)
CMYKcmyk(49.4%, 77.6%, 0%, 38.8%)
CIE-LABlab(27.47, 47.26, -57.94)
CIE-LCHlch(27.47, 74.77, 309.21°)
OKLaboklab(39.61% 0.0697 -0.1663)
OKLCHoklch(39.61% 0.18 292.7)
XYZxyz(9.8246, 5.2643, 31.9445)
Luminance0.0527 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F239C #709C23
analogous
#23349C #4F239C #8B239C
triadic
#4F239C #9C4F23 #239C4F
tetradic
#4F239C #9C2334 #709C23 #239C8B
square
#4F239C #9C2334 #709C23 #239C8B
split-complementary
#4F239C #9C8B23 #349C23
monochromatic
#1C0D38 #36186A #4F239C #682ECE #8C5EDB

Accessibility & contrast

On white

10.23
#4F239C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F239C
10.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F239C#FFFFFF#000000##FFFFFF
##4F239C1.0010.232.0510.23
#FFFFFF10.231.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429F
Deuteranopia (green-blind)
#003F9A
Tritanopia (blue-blind)
#36445E
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4f239c;
/* rgb */ color: rgb(79, 35, 156);
/* oklch */ color: oklch(39.6% 0.180 292.7);
Tailwind
colors: {
  custom: {
    50: '#8963ba',
    500: '#4f239c',
    950: '#000000',
  },
}
SCSS
$custom: #4f239c;
$custom-light: #8963ba;
$custom-dark: #000000;
JSON
{
  "hex": "#4f239c",
  "rgb": {
    "r": 79,
    "g": 35,
    "b": 156
  },
  "hsl": {
    "h": 261.818,
    "s": 63.351,
    "l": 37.451
  },
  "oklch": {
    "l": 0.39614,
    "c": 0.18029,
    "h": 292.7
  },
  "luminance": 0.05265
}

Semantic roles & 50–950 ramp

primary
#4F239C
secondary
#9BC05B
accent
#E641AA
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4F239C

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

Preview Lab → · Contrast checker → · Palette generator →

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