#4F256B#4F256B

#4F256B is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.8% C 0.120 H 309.2°. Best body text is #FFFFFF at 11.61:1 contrast (WCAG AA passes).

Color values

HEX#4F256B
RGBrgb(79, 37, 107)
HSLhsl(276, 49%, 28%)
HSVhsv(276, 65%, 42%)
CMYKcmyk(26.2%, 65.4%, 0%, 58%)
CIE-LABlab(23.83, 33.21, -33.10)
CIE-LCHlch(23.83, 46.89, 315.10°)
OKLaboklab(35.77% 0.0762 -0.0933)
OKLCHoklch(35.77% 0.121 309.2)
XYZxyz(6.5393, 4.0471, 14.3437)
Luminance0.0405 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F256B #416B25
analogous
#2C256B #4F256B #6B2564
triadic
#4F256B #6B4F25 #256B4F
tetradic
#4F256B #6B2C25 #416B25 #25646B
square
#4F256B #6B2C25 #416B25 #25646B
split-complementary
#4F256B #646B25 #256B2C
monochromatic
#110817 #2D153E #4F256B #713598 #914AC0

Accessibility & contrast

On white

11.61
#4F256B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#4F256B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F256B
11.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F256B#FFFFFF#000000##FFFFFF
##4F256B1.0011.611.8111.61
#FFFFFF11.611.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#04376D
Deuteranopia (green-blind)
#1B3969
Tritanopia (blue-blind)
#4B3344
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4f256b;
/* rgb */ color: rgb(79, 37, 107);
/* oklch */ color: oklch(35.8% 0.120 309.2);
Tailwind
colors: {
  custom: {
    50: '#836296',
    500: '#4f256b',
    950: '#000000',
  },
}
SCSS
$custom: #4f256b;
$custom-light: #836296;
$custom-dark: #000000;
JSON
{
  "hex": "#4f256b",
  "rgb": {
    "r": 79,
    "g": 37,
    "b": 107
  },
  "hsl": {
    "h": 276,
    "s": 48.611,
    "l": 28.235
  },
  "oklch": {
    "l": 0.35765,
    "c": 0.1205,
    "h": 309.2
  },
  "luminance": 0.04047
}

Semantic roles & 50–950 ramp

primary
#4F256B
secondary
#6E9E4E
accent
#D85086
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050D
muted
#7C797E

Preview Lab

Preview with #4F256B

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

Preview Lab → · Contrast checker → · Palette generator →

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