#4F238A#4F238A

#4F238A is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.0% C 0.160 H 297.7°. Best body text is #FFFFFF at 10.83:1 contrast (WCAG AA passes).

Color values

HEX#4F238A
RGBrgb(79, 35, 138)
HSLhsl(266, 60%, 34%)
HSVhsv(266, 75%, 54%)
CMYKcmyk(42.8%, 74.6%, 0%, 45.9%)
CIE-LABlab(25.86, 42.39, -49.48)
CIE-LCHlch(25.86, 65.15, 310.59°)
OKLaboklab(37.98% 0.0743 -0.1415)
OKLCHoklch(37.98% 0.16 297.7)
XYZxyz(8.4117, 4.6992, 24.5037)
Luminance0.0470 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F238A #5E8A23
analogous
#232B8A #4F238A #83238A
triadic
#4F238A #8A4F23 #238A4F
tetradic
#4F238A #8A232B #5E8A23 #238A83
square
#4F238A #8A232B #5E8A23 #238A83
split-complementary
#4F238A #8A8323 #2B8A23
monochromatic
#170A28 #331759 #4F238A #6B2FBB #8A54D4

Accessibility & contrast

On white

10.83
#4F238A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#4F238A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F238A
10.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F238A#FFFFFF#000000##FFFFFF
##4F238A1.0010.831.9410.83
#FFFFFF10.831.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8D
Deuteranopia (green-blind)
#003C88
Tritanopia (blue-blind)
#403D54
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4f238a;
/* rgb */ color: rgb(79, 35, 138);
/* oklch */ color: oklch(38.0% 0.160 297.7);
Tailwind
colors: {
  custom: {
    50: '#8662ad',
    500: '#4f238a',
    950: '#000000',
  },
}
SCSS
$custom: #4f238a;
$custom-light: #8662ad;
$custom-dark: #000000;
JSON
{
  "hex": "#4f238a",
  "rgb": {
    "r": 79,
    "g": 35,
    "b": 138
  },
  "hsl": {
    "h": 265.631,
    "s": 59.538,
    "l": 33.922
  },
  "oklch": {
    "l": 0.3798,
    "c": 0.15979,
    "h": 297.7
  },
  "luminance": 0.04699
}

Semantic roles & 50–950 ramp

primary
#4F238A
secondary
#8CB751
accent
#E3459F
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #4F238A

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

Preview Lab → · Contrast checker → · Palette generator →

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