#4F238D#4F238D

#4F238D is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.2% C 0.163 H 296.8°. Best body text is #FFFFFF at 10.73:1 contrast (WCAG AA passes).

Color values

HEX#4F238D
RGBrgb(79, 35, 141)
HSLhsl(265, 60%, 35%)
HSVhsv(265, 75%, 55%)
CMYKcmyk(44%, 75.2%, 0%, 44.7%)
CIE-LABlab(26.12, 43.20, -50.92)
CIE-LCHlch(26.12, 66.78, 310.31°)
OKLaboklab(38.25% 0.0736 -0.1457)
OKLCHoklch(38.25% 0.163 296.8)
XYZxyz(8.6319, 4.7872, 25.6634)
Luminance0.0479 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F238D #618D23
analogous
#232C8D #4F238D #84238D
triadic
#4F238D #8D4F23 #238D4F
tetradic
#4F238D #8D232C #618D23 #238D84
square
#4F238D #8D232C #618D23 #238D84
split-complementary
#4F238D #8D8423 #2C8D23
monochromatic
#180B2B #34175C #4F238D #6A2FBE #8A55D5

Accessibility & contrast

On white

10.73
#4F238D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#4F238D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F238D
10.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F238D#FFFFFF#000000##FFFFFF
##4F238D1.0010.731.9610.73
#FFFFFF10.731.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E90
Deuteranopia (green-blind)
#003C8B
Tritanopia (blue-blind)
#3F3E56
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4f238d;
/* rgb */ color: rgb(79, 35, 141);
/* oklch */ color: oklch(38.2% 0.163 296.8);
Tailwind
colors: {
  custom: {
    50: '#8662af',
    500: '#4f238d',
    950: '#000000',
  },
}
SCSS
$custom: #4f238d;
$custom-light: #8662af;
$custom-dark: #000000;
JSON
{
  "hex": "#4f238d",
  "rgb": {
    "r": 79,
    "g": 35,
    "b": 141
  },
  "hsl": {
    "h": 264.906,
    "s": 60.227,
    "l": 34.51
  },
  "oklch": {
    "l": 0.38245,
    "c": 0.16323,
    "h": 296.8
  },
  "luminance": 0.04787
}

Semantic roles & 50–950 ramp

primary
#4F238D
secondary
#8FB953
accent
#E344A1
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #4F238D

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

Preview Lab → · Contrast checker → · Palette generator →

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