#4F236D#4F236D

#4F236D is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.6% C 0.126 H 308.7°. Best body text is #FFFFFF at 11.71:1 contrast (WCAG AA passes).

Color values

HEX#4F236D
RGBrgb(79, 35, 109)
HSLhsl(276, 51%, 28%)
HSVhsv(276, 68%, 43%)
CMYKcmyk(27.5%, 67.9%, 0%, 57.3%)
CIE-LABlab(23.57, 34.81, -34.81)
CIE-LCHlch(23.57, 49.23, 315.00°)
OKLaboklab(35.62% 0.0788 -0.0984)
OKLCHoklch(35.62% 0.126 308.7)
XYZxyz(6.5852, 3.9686, 14.8841)
Luminance0.0397 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F236D #416D23
analogous
#2A236D #4F236D #6D2366
triadic
#4F236D #6D4F23 #236D4F
tetradic
#4F236D #6D2A23 #416D23 #23666D
square
#4F236D #6D2A23 #416D23 #23666D
split-complementary
#4F236D #666D23 #236D2A
monochromatic
#110717 #2D143F #4F236D #71329B #9147C4

Accessibility & contrast

On white

11.71
#4F236D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#4F236D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F236D
11.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F236D#FFFFFF#000000##FFFFFF
##4F236D1.0011.711.7911.71
#FFFFFF11.711.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00366F
Deuteranopia (green-blind)
#17396B
Tritanopia (blue-blind)
#4B3244
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4f236d;
/* rgb */ color: rgb(79, 35, 109);
/* oklch */ color: oklch(35.6% 0.126 308.7);
Tailwind
colors: {
  custom: {
    50: '#836197',
    500: '#4f236d',
    950: '#000000',
  },
}
SCSS
$custom: #4f236d;
$custom-light: #836197;
$custom-dark: #000000;
JSON
{
  "hex": "#4f236d",
  "rgb": {
    "r": 79,
    "g": 35,
    "b": 109
  },
  "hsl": {
    "h": 275.676,
    "s": 51.389,
    "l": 28.235
  },
  "oklch": {
    "l": 0.35622,
    "c": 0.12599,
    "h": 308.7
  },
  "luminance": 0.03968
}

Semantic roles & 50–950 ramp

primary
#4F236D
secondary
#6EA04B
accent
#DB4D86
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050D
muted
#7C797E

Preview Lab

Preview with #4F236D

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

Preview Lab → · Contrast checker → · Palette generator →

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