#4F28B3#4F28B3

#4F28B3 is a dark, highly saturated violet. Relative luminance 0.064; OKLCH L 42.4% C 0.201 H 287.1°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#4F28B3
RGBrgb(79, 40, 179)
HSLhsl(257, 63%, 43%)
HSVhsv(257, 78%, 70%)
CMYKcmyk(55.9%, 77.7%, 0%, 29.8%)
CIE-LABlab(30.48, 51.30, -66.87)
CIE-LCHlch(30.48, 84.28, 307.49°)
OKLaboklab(42.38% 0.0592 -0.1925)
OKLCHoklch(42.38% 0.201 287.1)
XYZxyz(12.1175, 6.4339, 43.2424)
Luminance0.0644 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F28B3 #8CB328
analogous
#2846B3 #4F28B3 #9528B3
triadic
#4F28B3 #B34F28 #28B34F
tetradic
#4F28B3 #B32846 #8CB328 #28B395
square
#4F28B3 #B32846 #8CB328 #28B395
split-complementary
#4F28B3 #B39528 #46B328
monochromatic
#23124F #391D81 #4F28B3 #6C43D5 #9375E0

Accessibility & contrast

On white

9.18
#4F28B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#4F28B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F28B3
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F28B3#FFFFFF#000000##FFFFFF
##4F28B31.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB7
Deuteranopia (green-blind)
#0044B0
Tritanopia (blue-blind)
#22506D
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4f28b3;
/* rgb */ color: rgb(79, 40, 179);
/* oklch */ color: oklch(42.4% 0.201 287.1);
Tailwind
colors: {
  custom: {
    50: '#8c67cb',
    500: '#4f28b3',
    950: '#000000',
  },
}
SCSS
$custom: #4f28b3;
$custom-light: #8c67cb;
$custom-dark: #000000;
JSON
{
  "hex": "#4f28b3",
  "rgb": {
    "r": 79,
    "g": 40,
    "b": 179
  },
  "hsl": {
    "h": 256.835,
    "s": 63.47,
    "l": 42.941
  },
  "oklch": {
    "l": 0.42381,
    "c": 0.20139,
    "h": 287.1
  },
  "luminance": 0.06435
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4F28B3

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

Preview Lab → · Contrast checker → · Palette generator →

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