#4F238C#4F238C

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

Color values

HEX#4F238C
RGBrgb(79, 35, 140)
HSLhsl(265, 60%, 34%)
HSVhsv(265, 75%, 55%)
CMYKcmyk(43.6%, 75%, 0%, 45.1%)
CIE-LABlab(26.03, 42.93, -50.44)
CIE-LCHlch(26.03, 66.24, 310.40°)
OKLaboklab(38.16% 0.0738 -0.1443)
OKLCHoklch(38.16% 0.162 297.1)
XYZxyz(8.5579, 4.7576, 25.2733)
Luminance0.0476 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F238C #608C23
analogous
#232C8C #4F238C #84238C
triadic
#4F238C #8C4F23 #238C4F
tetradic
#4F238C #8C232C #608C23 #238C84
square
#4F238C #8C232C #608C23 #238C84
split-complementary
#4F238C #8C8423 #2C8C23
monochromatic
#180B2A #33175B #4F238C #6B2FBD #8A55D4

Accessibility & contrast

On white

10.76
#4F238C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#4F238C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F238C
10.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F238C#FFFFFF#000000##FFFFFF
##4F238C1.0010.761.9510.76
#FFFFFF10.761.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8F
Deuteranopia (green-blind)
#003C8A
Tritanopia (blue-blind)
#3F3E55
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4f238c;
/* rgb */ color: rgb(79, 35, 140);
/* oklch */ color: oklch(38.2% 0.162 297.1);
Tailwind
colors: {
  custom: {
    50: '#8662ae',
    500: '#4f238c',
    950: '#000000',
  },
}
SCSS
$custom: #4f238c;
$custom-light: #8662ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4f238c",
  "rgb": {
    "r": 79,
    "g": 35,
    "b": 140
  },
  "hsl": {
    "h": 265.143,
    "s": 60,
    "l": 34.314
  },
  "oklch": {
    "l": 0.38156,
    "c": 0.1621,
    "h": 297.1
  },
  "luminance": 0.04758
}

Semantic roles & 50–950 ramp

primary
#4F238C
secondary
#8EB852
accent
#E345A1
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #4F238C

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

Preview Lab → · Contrast checker → · Palette generator →

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