#4F256E#4F256E

#4F256E is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.0% C 0.124 H 307.8°. Best body text is #FFFFFF at 11.52:1 contrast (WCAG AA passes).

Color values

HEX#4F256E
RGBrgb(79, 37, 110)
HSLhsl(275, 50%, 29%)
HSVhsv(275, 66%, 43%)
CMYKcmyk(28.2%, 66.4%, 0%, 56.9%)
CIE-LABlab(24.04, 33.98, -34.70)
CIE-LCHlch(24.04, 48.56, 314.40°)
OKLaboklab(35.98% 0.0761 -0.098)
OKLCHoklch(35.98% 0.124 307.8)
XYZxyz(6.6999, 4.1113, 15.1894)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F256E #446E25
analogous
#2B256E #4F256E #6E2569
triadic
#4F256E #6E4F25 #256E4F
tetradic
#4F256E #6E2B25 #446E25 #25696E
square
#4F256E #6E2B25 #446E25 #25696E
split-complementary
#4F256E #696E25 #256E2B
monochromatic
#100817 #2E1640 #4F256E #70349C #904BC2

Accessibility & contrast

On white

11.52
#4F256E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#4F256E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F256E
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F256E#FFFFFF#000000##FFFFFF
##4F256E1.0011.521.8211.52
#FFFFFF11.521.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003870
Deuteranopia (green-blind)
#183A6C
Tritanopia (blue-blind)
#4A3446
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4f256e;
/* rgb */ color: rgb(79, 37, 110);
/* oklch */ color: oklch(36.0% 0.124 307.8);
Tailwind
colors: {
  custom: {
    50: '#836298',
    500: '#4f256e',
    950: '#000000',
  },
}
SCSS
$custom: #4f256e;
$custom-light: #836298;
$custom-dark: #000000;
JSON
{
  "hex": "#4f256e",
  "rgb": {
    "r": 79,
    "g": 37,
    "b": 110
  },
  "hsl": {
    "h": 274.521,
    "s": 49.66,
    "l": 28.824
  },
  "oklch": {
    "l": 0.35983,
    "c": 0.1241,
    "h": 307.8
  },
  "luminance": 0.04111
}

Semantic roles & 50–950 ramp

primary
#4F256E
secondary
#71A14E
accent
#D94F89
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #4F256E

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

Preview Lab → · Contrast checker → · Palette generator →

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