#4F288A#4F288A

#4F288A is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.6% C 0.154 H 296.8°. Best body text is #FFFFFF at 10.48:1 contrast (WCAG AA passes).

Color values

HEX#4F288A
RGBrgb(79, 40, 138)
HSLhsl(264, 55%, 35%)
HSVhsv(264, 71%, 54%)
CMYKcmyk(42.8%, 71%, 0%, 45.9%)
CIE-LABlab(26.78, 39.82, -47.99)
CIE-LCHlch(26.78, 62.36, 309.69°)
OKLaboklab(38.63% 0.0692 -0.1371)
OKLCHoklch(38.63% 0.154 296.8)
XYZxyz(8.5695, 5.0147, 24.5563)
Luminance0.0502 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F288A #638A28
analogous
#28328A #4F288A #80288A
triadic
#4F288A #8A4F28 #288A4F
tetradic
#4F288A #8A2832 #638A28 #288A80
square
#4F288A #8A2832 #638A28 #288A80
split-complementary
#4F288A #8A8028 #328A28
monochromatic
#190C2B #341A5B #4F288A #6A36B9 #8A5DD0

Accessibility & contrast

On white

10.48
#4F288A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#4F288A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F288A
10.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F288A#FFFFFF#000000##FFFFFF
##4F288A1.0010.482.0010.48
#FFFFFF10.481.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408D
Deuteranopia (green-blind)
#003E88
Tritanopia (blue-blind)
#404056
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4f288a;
/* rgb */ color: rgb(79, 40, 138);
/* oklch */ color: oklch(38.6% 0.154 296.8);
Tailwind
colors: {
  custom: {
    50: '#8665ad',
    500: '#4f288a',
    950: '#000000',
  },
}
SCSS
$custom: #4f288a;
$custom-light: #8665ad;
$custom-dark: #000000;
JSON
{
  "hex": "#4f288a",
  "rgb": {
    "r": 79,
    "g": 40,
    "b": 138
  },
  "hsl": {
    "h": 263.878,
    "s": 55.056,
    "l": 34.902
  },
  "oklch": {
    "l": 0.38632,
    "c": 0.15357,
    "h": 296.8
  },
  "luminance": 0.05015
}

Semantic roles & 50–950 ramp

primary
#4F288A
secondary
#90B559
accent
#DE49A3
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #4F288A

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

Preview Lab → · Contrast checker → · Palette generator →

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