#4F288C#4F288C

#4F288C is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.8% C 0.156 H 296.2°. Best body text is #FFFFFF at 10.42:1 contrast (WCAG AA passes).

Color values

HEX#4F288C
RGBrgb(79, 40, 140)
HSLhsl(263, 56%, 35%)
HSVhsv(263, 71%, 55%)
CMYKcmyk(43.6%, 71.4%, 0%, 45.1%)
CIE-LABlab(26.94, 40.38, -48.96)
CIE-LCHlch(26.94, 63.46, 309.51°)
OKLaboklab(38.8% 0.0688 -0.14)
OKLCHoklch(38.8% 0.156 296.2)
XYZxyz(8.7156, 5.0731, 25.3259)
Luminance0.0507 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F288C #658C28
analogous
#28338C #4F288C #81288C
triadic
#4F288C #8C4F28 #288C4F
tetradic
#4F288C #8C2833 #658C28 #288C81
square
#4F288C #8C2833 #658C28 #288C81
split-complementary
#4F288C #8C8128 #338C28
monochromatic
#190D2D #341A5C #4F288C #6A36BC #8B5ED1

Accessibility & contrast

On white

10.42
#4F288C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#4F288C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F288C
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F288C#FFFFFF#000000##FFFFFF
##4F288C1.0010.422.0110.42
#FFFFFF10.421.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408F
Deuteranopia (green-blind)
#003E8A
Tritanopia (blue-blind)
#3F4157
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4f288c;
/* rgb */ color: rgb(79, 40, 140);
/* oklch */ color: oklch(38.8% 0.156 296.2);
Tailwind
colors: {
  custom: {
    50: '#8665ae',
    500: '#4f288c',
    950: '#000000',
  },
}
SCSS
$custom: #4f288c;
$custom-light: #8665ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4f288c",
  "rgb": {
    "r": 79,
    "g": 40,
    "b": 140
  },
  "hsl": {
    "h": 263.4,
    "s": 55.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.38801,
    "c": 0.15597,
    "h": 296.2
  },
  "luminance": 0.05073
}

Semantic roles & 50–950 ramp

primary
#4F288C
secondary
#92B65A
accent
#DF49A4
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #4F288C

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

Preview Lab → · Contrast checker → · Palette generator →

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