#4F287D#4F287D

#4F287D is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.6% C 0.138 H 301.0°. Best body text is #FFFFFF at 10.87:1 contrast (WCAG AA passes).

Color values

HEX#4F287D
RGBrgb(79, 40, 125)
HSLhsl(268, 52%, 32%)
HSVhsv(268, 68%, 49%)
CMYKcmyk(36.8%, 68%, 0%, 51%)
CIE-LABlab(25.74, 36.26, -41.51)
CIE-LCHlch(25.74, 55.12, 311.14°)
OKLaboklab(37.57% 0.071 -0.1181)
OKLCHoklch(37.57% 0.138 301)
XYZxyz(7.6840, 4.6605, 19.8928)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F287D #567D28
analogous
#282C7D #4F287D #79287D
triadic
#4F287D #7D4F28 #287D4F
tetradic
#4F287D #7D282C #567D28 #287D79
square
#4F287D #7D282C #567D28 #287D79
split-complementary
#4F287D #7D7928 #2C7D28
monochromatic
#140A20 #32194F #4F287D #6C37AB #8B56C9

Accessibility & contrast

On white

10.87
#4F287D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#4F287D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F287D
10.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F287D#FFFFFF#000000##FFFFFF
##4F287D1.0010.871.9310.87
#FFFFFF10.871.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D80
Deuteranopia (green-blind)
#013C7B
Tritanopia (blue-blind)
#453B4F
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4f287d;
/* rgb */ color: rgb(79, 40, 125);
/* oklch */ color: oklch(37.6% 0.138 301.0);
Tailwind
colors: {
  custom: {
    50: '#8465a3',
    500: '#4f287d',
    950: '#000000',
  },
}
SCSS
$custom: #4f287d;
$custom-light: #8465a3;
$custom-dark: #000000;
JSON
{
  "hex": "#4f287d",
  "rgb": {
    "r": 79,
    "g": 40,
    "b": 125
  },
  "hsl": {
    "h": 267.529,
    "s": 51.515,
    "l": 32.353
  },
  "oklch": {
    "l": 0.37568,
    "c": 0.13779,
    "h": 301
  },
  "luminance": 0.04661
}

Semantic roles & 50–950 ramp

primary
#4F287D
secondary
#84AE53
accent
#DB4D9A
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4F287D

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

Preview Lab → · Contrast checker → · Palette generator →

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