#4F258E#4F258E

#4F258E is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.6% C 0.162 H 296.2°. Best body text is #FFFFFF at 10.57:1 contrast (WCAG AA passes).

Color values

HEX#4F258E
RGBrgb(79, 37, 142)
HSLhsl(264, 59%, 35%)
HSVhsv(264, 74%, 56%)
CMYKcmyk(44.4%, 73.9%, 0%, 44.3%)
CIE-LABlab(26.56, 42.48, -50.83)
CIE-LCHlch(26.56, 66.24, 309.88°)
OKLaboklab(38.58% 0.0714 -0.1454)
OKLCHoklch(38.58% 0.162 296.2)
XYZxyz(8.7672, 4.9382, 26.0772)
Luminance0.0494 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F258E #648E25
analogous
#25308E #4F258E #83258E
triadic
#4F258E #8E4F25 #258E4F
tetradic
#4F258E #8E2530 #648E25 #258E83
square
#4F258E #8E2530 #648E25 #258E83
split-complementary
#4F258E #8E8325 #308E25
monochromatic
#190C2D #34185D #4F258E #6A32BF #8A5AD4

Accessibility & contrast

On white

10.57
#4F258E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#4F258E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F258E
10.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F258E#FFFFFF#000000##FFFFFF
##4F258E1.0010.571.9910.57
#FFFFFF10.571.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F91
Deuteranopia (green-blind)
#003D8C
Tritanopia (blue-blind)
#3E4057
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4f258e;
/* rgb */ color: rgb(79, 37, 142);
/* oklch */ color: oklch(38.6% 0.162 296.2);
Tailwind
colors: {
  custom: {
    50: '#8664b0',
    500: '#4f258e',
    950: '#000000',
  },
}
SCSS
$custom: #4f258e;
$custom-light: #8664b0;
$custom-dark: #000000;
JSON
{
  "hex": "#4f258e",
  "rgb": {
    "r": 79,
    "g": 37,
    "b": 142
  },
  "hsl": {
    "h": 264,
    "s": 58.659,
    "l": 35.098
  },
  "oklch": {
    "l": 0.38581,
    "c": 0.16204,
    "h": 296.2
  },
  "luminance": 0.04938
}

Semantic roles & 50–950 ramp

primary
#4F258E
secondary
#91B956
accent
#E246A3
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #4F258E

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

Preview Lab → · Contrast checker → · Palette generator →

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