#4F237E#4F237E

#4F237E is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.0% C 0.146 H 301.7°. Best body text is #FFFFFF at 11.20:1 contrast (WCAG AA passes).

Color values

HEX#4F237E
RGBrgb(79, 35, 126)
HSLhsl(269, 57%, 32%)
HSVhsv(269, 72%, 49%)
CMYKcmyk(37.3%, 72.2%, 0%, 50.6%)
CIE-LABlab(24.86, 39.19, -43.58)
CIE-LCHlch(24.86, 58.61, 311.97°)
OKLaboklab(36.96% 0.0767 -0.1241)
OKLCHoklch(36.96% 0.146 301.7)
XYZxyz(7.5905, 4.3707, 20.1783)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F237E #527E23
analogous
#23257E #4F237E #7D237E
triadic
#4F237E #7E4F23 #237E4F
tetradic
#4F237E #7E2325 #527E23 #237E7D
square
#4F237E #7E2325 #527E23 #237E7D
split-complementary
#4F237E #7E7D23 #257E23
monochromatic
#13081E #31164E #4F237E #6D30AE #8C4ECE

Accessibility & contrast

On white

11.20
#4F237E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#4F237E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F237E
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F237E#FFFFFF#000000##FFFFFF
##4F237E1.0011.201.8711.20
#FFFFFF11.201.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A81
Deuteranopia (green-blind)
#003B7C
Tritanopia (blue-blind)
#45394E
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4f237e;
/* rgb */ color: rgb(79, 35, 126);
/* oklch */ color: oklch(37.0% 0.146 301.7);
Tailwind
colors: {
  custom: {
    50: '#8562a4',
    500: '#4f237e',
    950: '#000000',
  },
}
SCSS
$custom: #4f237e;
$custom-light: #8562a4;
$custom-dark: #000000;
JSON
{
  "hex": "#4f237e",
  "rgb": {
    "r": 79,
    "g": 35,
    "b": 126
  },
  "hsl": {
    "h": 269.011,
    "s": 56.522,
    "l": 31.569
  },
  "oklch": {
    "l": 0.36959,
    "c": 0.1459,
    "h": 301.7
  },
  "luminance": 0.04371
}

Semantic roles & 50–950 ramp

primary
#4F237E
secondary
#80B04C
accent
#E04896
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4F237E

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

Preview Lab → · Contrast checker → · Palette generator →

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