#4F28B2#4F28B2

#4F28B2 is a dark, highly saturated violet. Relative luminance 0.064; OKLCH L 42.3% C 0.200 H 287.3°. Best body text is #FFFFFF at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#4F28B2
RGBrgb(79, 40, 178)
HSLhsl(257, 63%, 43%)
HSVhsv(257, 78%, 70%)
CMYKcmyk(55.6%, 77.5%, 0%, 30.2%)
CIE-LABlab(30.38, 51.02, -66.43)
CIE-LCHlch(30.38, 83.76, 307.52°)
OKLaboklab(42.28% 0.0595 -0.1912)
OKLCHoklch(42.28% 0.2 287.3)
XYZxyz(12.0167, 6.3936, 42.7117)
Luminance0.0639 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F28B2 #8BB228
analogous
#2846B2 #4F28B2 #9428B2
triadic
#4F28B2 #B24F28 #28B24F
tetradic
#4F28B2 #B22846 #8BB228 #28B294
square
#4F28B2 #B22846 #8BB228 #28B294
split-complementary
#4F28B2 #B29428 #46B228
monochromatic
#23124E #391D80 #4F28B2 #6C43D5 #9375E0

Accessibility & contrast

On white

9.22
#4F28B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#4F28B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F28B2
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F28B2#FFFFFF#000000##FFFFFF
##4F28B21.009.222.289.22
#FFFFFF9.221.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB6
Deuteranopia (green-blind)
#0044AF
Tritanopia (blue-blind)
#23506C
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4f28b2;
/* rgb */ color: rgb(79, 40, 178);
/* oklch */ color: oklch(42.3% 0.200 287.3);
Tailwind
colors: {
  custom: {
    50: '#8b67ca',
    500: '#4f28b2',
    950: '#000000',
  },
}
SCSS
$custom: #4f28b2;
$custom-light: #8b67ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4f28b2",
  "rgb": {
    "r": 79,
    "g": 40,
    "b": 178
  },
  "hsl": {
    "h": 256.957,
    "s": 63.303,
    "l": 42.745
  },
  "oklch": {
    "l": 0.42284,
    "c": 0.20025,
    "h": 287.3
  },
  "luminance": 0.06394
}

Semantic roles & 50–950 ramp

primary
#4F28B2
secondary
#AEC76F
accent
#E641B8
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4F28B2

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

Preview Lab → · Contrast checker → · Palette generator →

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