#4F257E#4F257E

#4F257E is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.2% C 0.143 H 301.3°. Best body text is #FFFFFF at 11.06:1 contrast (WCAG AA passes).

Color values

HEX#4F257E
RGBrgb(79, 37, 126)
HSLhsl(268, 55%, 32%)
HSVhsv(268, 71%, 49%)
CMYKcmyk(37.3%, 70.6%, 0%, 50.6%)
CIE-LABlab(25.23, 38.15, -42.97)
CIE-LCHlch(25.23, 57.46, 311.60°)
OKLaboklab(37.23% 0.0744 -0.1223)
OKLCHoklch(37.23% 0.143 301.3)
XYZxyz(7.6510, 4.4917, 20.1985)
Luminance0.0449 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F257E #547E25
analogous
#25277E #4F257E #7C257E
triadic
#4F257E #7E4F25 #257E4F
tetradic
#4F257E #7E2527 #547E25 #257E7C
square
#4F257E #7E2527 #547E25 #257E7C
split-complementary
#4F257E #7E7C25 #277E25
monochromatic
#14091F #31174F #4F257E #6D33AD #8B51CC

Accessibility & contrast

On white

11.06
#4F257E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F257E
11.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F257E#FFFFFF#000000##FFFFFF
##4F257E1.0011.061.9011.06
#FFFFFF11.061.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B81
Deuteranopia (green-blind)
#003B7C
Tritanopia (blue-blind)
#453A4E
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4f257e;
/* rgb */ color: rgb(79, 37, 126);
/* oklch */ color: oklch(37.2% 0.143 301.3);
Tailwind
colors: {
  custom: {
    50: '#8563a4',
    500: '#4f257e',
    950: '#000000',
  },
}
SCSS
$custom: #4f257e;
$custom-light: #8563a4;
$custom-dark: #000000;
JSON
{
  "hex": "#4f257e",
  "rgb": {
    "r": 79,
    "g": 37,
    "b": 126
  },
  "hsl": {
    "h": 268.315,
    "s": 54.601,
    "l": 31.961
  },
  "oklch": {
    "l": 0.37226,
    "c": 0.14321,
    "h": 301.3
  },
  "luminance": 0.04492
}

Semantic roles & 50–950 ramp

primary
#4F257E
secondary
#82B04F
accent
#DE4A98
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B050F
muted
#7C7A7F

Preview Lab

Preview with #4F257E

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

Preview Lab → · Contrast checker → · Palette generator →

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