#4F257F#4F257F

#4F257F is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.3% C 0.144 H 301.0°. Best body text is #FFFFFF at 11.03:1 contrast (WCAG AA passes).

Color values

HEX#4F257F
RGBrgb(79, 37, 127)
HSLhsl(268, 55%, 32%)
HSVhsv(268, 71%, 50%)
CMYKcmyk(37.8%, 70.9%, 0%, 50.2%)
CIE-LABlab(25.31, 38.42, -43.47)
CIE-LCHlch(25.31, 58.02, 311.47°)
OKLaboklab(37.31% 0.0743 -0.1238)
OKLCHoklch(37.31% 0.144 301)
XYZxyz(7.7159, 4.5177, 20.5401)
Luminance0.0452 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F257F #557F25
analogous
#25287F #4F257F #7C257F
triadic
#4F257F #7F4F25 #257F4F
tetradic
#4F257F #7F2528 #557F25 #257F7C
square
#4F257F #7F2528 #557F25 #257F7C
split-complementary
#4F257F #7F7C25 #287F25
monochromatic
#140920 #321750 #4F257F #6C33AE #8B52CD

Accessibility & contrast

On white

11.03
#4F257F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#4F257F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F257F
11.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F257F#FFFFFF#000000##FFFFFF
##4F257F1.0011.031.9011.03
#FFFFFF11.031.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C82
Deuteranopia (green-blind)
#003B7D
Tritanopia (blue-blind)
#453A4F
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4f257f;
/* rgb */ color: rgb(79, 37, 127);
/* oklch */ color: oklch(37.3% 0.144 301.0);
Tailwind
colors: {
  custom: {
    50: '#8563a5',
    500: '#4f257f',
    950: '#000000',
  },
}
SCSS
$custom: #4f257f;
$custom-light: #8563a5;
$custom-dark: #000000;
JSON
{
  "hex": "#4f257f",
  "rgb": {
    "r": 79,
    "g": 37,
    "b": 127
  },
  "hsl": {
    "h": 268,
    "s": 54.878,
    "l": 32.157
  },
  "oklch": {
    "l": 0.37308,
    "c": 0.14439,
    "h": 301
  },
  "luminance": 0.04518
}

Semantic roles & 50–950 ramp

primary
#4F257F
secondary
#83B14F
accent
#DE4A99
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B050F
muted
#7C7A7F

Preview Lab

Preview with #4F257F

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

Preview Lab → · Contrast checker → · Palette generator →

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