#4F238F#4F238F

#4F238F is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.4% C 0.166 H 296.2°. Best body text is #FFFFFF at 10.66:1 contrast (WCAG AA passes).

Color values

HEX#4F238F
RGBrgb(79, 35, 143)
HSLhsl(264, 61%, 35%)
HSVhsv(264, 76%, 56%)
CMYKcmyk(44.8%, 75.5%, 0%, 43.9%)
CIE-LABlab(26.30, 43.74, -51.88)
CIE-LCHlch(26.30, 67.85, 310.13°)
OKLaboklab(38.42% 0.0731 -0.1485)
OKLCHoklch(38.42% 0.166 296.2)
XYZxyz(8.7821, 4.8473, 26.4542)
Luminance0.0485 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F238F #638F23
analogous
#232D8F #4F238F #85238F
triadic
#4F238F #8F4F23 #238F4F
tetradic
#4F238F #8F232D #638F23 #238F85
square
#4F238F #8F232D #638F23 #238F85
split-complementary
#4F238F #8F8523 #2D8F23
monochromatic
#190B2D #34175E #4F238F #6A2FC0 #8A57D6

Accessibility & contrast

On white

10.66
#4F238F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#4F238F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F238F
10.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F238F#FFFFFF#000000##FFFFFF
##4F238F1.0010.661.9710.66
#FFFFFF10.661.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F92
Deuteranopia (green-blind)
#003D8D
Tritanopia (blue-blind)
#3E3F57
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4f238f;
/* rgb */ color: rgb(79, 35, 143);
/* oklch */ color: oklch(38.4% 0.166 296.2);
Tailwind
colors: {
  custom: {
    50: '#8762b1',
    500: '#4f238f',
    950: '#000000',
  },
}
SCSS
$custom: #4f238f;
$custom-light: #8762b1;
$custom-dark: #000000;
JSON
{
  "hex": "#4f238f",
  "rgb": {
    "r": 79,
    "g": 35,
    "b": 143
  },
  "hsl": {
    "h": 264.444,
    "s": 60.674,
    "l": 34.902
  },
  "oklch": {
    "l": 0.38423,
    "c": 0.16553,
    "h": 296.2
  },
  "luminance": 0.04847
}

Semantic roles & 50–950 ramp

primary
#4F238F
secondary
#90BA54
accent
#E444A3
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #4F238F

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

Preview Lab → · Contrast checker → · Palette generator →

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