#4F2286#4F2286

#4F2286 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.5% C 0.156 H 299.1°. Best body text is #FFFFFF at 11.02:1 contrast (WCAG AA passes).

Color values

HEX#4F2286
RGBrgb(79, 34, 134)
HSLhsl(267, 60%, 33%)
HSVhsv(267, 75%, 53%)
CMYKcmyk(41%, 74.6%, 0%, 47.5%)
CIE-LABlab(25.34, 41.81, -47.82)
CIE-LCHlch(25.34, 63.53, 311.16°)
OKLaboklab(37.51% 0.0762 -0.1366)
OKLCHoklch(37.51% 0.156 299.1)
XYZxyz(8.0985, 4.5274, 22.9968)
Luminance0.0453 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2286 #598622
analogous
#222786 #4F2286 #812286
triadic
#4F2286 #864F22 #22864F
tetradic
#4F2286 #862227 #598622 #228681
square
#4F2286 #862227 #598622 #228681
split-complementary
#4F2286 #868122 #278622
monochromatic
#150924 #321655 #4F2286 #6C2EB7 #8B50D3

Accessibility & contrast

On white

11.02
#4F2286 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#4F2286 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2286
11.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2286#FFFFFF#000000##FFFFFF
##4F22861.0011.021.9111.02
#FFFFFF11.021.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C89
Deuteranopia (green-blind)
#003B84
Tritanopia (blue-blind)
#423B52
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4f2286;
/* rgb */ color: rgb(79, 34, 134);
/* oklch */ color: oklch(37.5% 0.156 299.1);
Tailwind
colors: {
  custom: {
    50: '#8661aa',
    500: '#4f2286',
    950: '#000000',
  },
}
SCSS
$custom: #4f2286;
$custom-light: #8661aa;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2286",
  "rgb": {
    "r": 79,
    "g": 34,
    "b": 134
  },
  "hsl": {
    "h": 267,
    "s": 59.524,
    "l": 32.941
  },
  "oklch": {
    "l": 0.37509,
    "c": 0.1564,
    "h": 299.1
  },
  "luminance": 0.04528
}

Semantic roles & 50–950 ramp

primary
#4F2286
secondary
#87B64E
accent
#E3459C
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4F2286

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

Preview Lab → · Contrast checker → · Palette generator →

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