#4F237C#4F237C

#4F237C is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.8% C 0.144 H 302.4°. Best body text is #FFFFFF at 11.27:1 contrast (WCAG AA passes).

Color values

HEX#4F237C
RGBrgb(79, 35, 124)
HSLhsl(270, 56%, 31%)
HSVhsv(270, 72%, 49%)
CMYKcmyk(36.3%, 71.8%, 0%, 51.4%)
CIE-LABlab(24.70, 38.67, -42.57)
CIE-LCHlch(24.70, 57.51, 312.25°)
OKLaboklab(36.8% 0.077 -0.1212)
OKLCHoklch(36.8% 0.144 302.4)
XYZxyz(7.4627, 4.3196, 19.5055)
Luminance0.0432 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F237C #507C23
analogous
#23237C #4F237C #7B237C
triadic
#4F237C #7C4F23 #237C4F
tetradic
#4F237C #7C2323 #507C23 #237C7B
square
#4F237C #7C2323 #507C23 #237C7B
split-complementary
#4F237C #7C7B23 #237C23
monochromatic
#12081D #31164C #4F237C #6D30AC #8C4DCD

Accessibility & contrast

On white

11.27
#4F237C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#4F237C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F237C
11.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F237C#FFFFFF#000000##FFFFFF
##4F237C1.0011.271.8611.27
#FFFFFF11.271.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7F
Deuteranopia (green-blind)
#003A7A
Tritanopia (blue-blind)
#46384D
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4f237c;
/* rgb */ color: rgb(79, 35, 124);
/* oklch */ color: oklch(36.8% 0.144 302.4);
Tailwind
colors: {
  custom: {
    50: '#8562a3',
    500: '#4f237c',
    950: '#000000',
  },
}
SCSS
$custom: #4f237c;
$custom-light: #8562a3;
$custom-dark: #000000;
JSON
{
  "hex": "#4f237c",
  "rgb": {
    "r": 79,
    "g": 35,
    "b": 124
  },
  "hsl": {
    "h": 269.663,
    "s": 55.975,
    "l": 31.176
  },
  "oklch": {
    "l": 0.36795,
    "c": 0.14356,
    "h": 302.4
  },
  "luminance": 0.0432
}

Semantic roles & 50–950 ramp

primary
#4F237C
secondary
#7EAF4C
accent
#DF4995
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4F237C

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

Preview Lab → · Contrast checker → · Palette generator →

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