#4F257B#4F257B

#4F257B is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.0% C 0.140 H 302.4°. Best body text is #FFFFFF at 11.15:1 contrast (WCAG AA passes).

Color values

HEX#4F257B
RGBrgb(79, 37, 123)
HSLhsl(269, 54%, 31%)
HSVhsv(269, 70%, 48%)
CMYKcmyk(35.8%, 69.9%, 0%, 51.8%)
CIE-LABlab(25.00, 37.36, -41.45)
CIE-LCHlch(25.00, 55.80, 312.02°)
OKLaboklab(36.98% 0.0749 -0.1179)
OKLCHoklch(36.98% 0.14 302.4)
XYZxyz(7.4603, 4.4154, 19.1943)
Luminance0.0442 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F257B #517B25
analogous
#25267B #4F257B #7A257B
triadic
#4F257B #7B4F25 #257B4F
tetradic
#4F257B #7B2526 #517B25 #257B7A
square
#4F257B #7B2526 #517B25 #257B7A
split-complementary
#4F257B #7B7A25 #267B25
monochromatic
#13091D #31174C #4F257B #6D33AA #8C50CA

Accessibility & contrast

On white

11.15
#4F257B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#4F257B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F257B
11.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F257B#FFFFFF#000000##FFFFFF
##4F257B1.0011.151.8811.15
#FFFFFF11.151.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7E
Deuteranopia (green-blind)
#003B79
Tritanopia (blue-blind)
#46394D
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4f257b;
/* rgb */ color: rgb(79, 37, 123);
/* oklch */ color: oklch(37.0% 0.140 302.4);
Tailwind
colors: {
  custom: {
    50: '#8463a2',
    500: '#4f257b',
    950: '#000000',
  },
}
SCSS
$custom: #4f257b;
$custom-light: #8463a2;
$custom-dark: #000000;
JSON
{
  "hex": "#4f257b",
  "rgb": {
    "r": 79,
    "g": 37,
    "b": 123
  },
  "hsl": {
    "h": 269.302,
    "s": 53.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.36984,
    "c": 0.13964,
    "h": 302.4
  },
  "luminance": 0.04415
}

Semantic roles & 50–950 ramp

primary
#4F257B
secondary
#7FAD4F
accent
#DD4B96
background
#F8F6FA
surface
#EFEBF3
border
#CAC6CD
text
#0B050F
muted
#7C7A7F

Preview Lab

Preview with #4F257B

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

Preview Lab → · Contrast checker → · Palette generator →

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