#4F256A#4F256A

#4F256A is a dark, moderate violet. Relative luminance 0.040; OKLCH L 35.7% C 0.119 H 309.7°. Best body text is #FFFFFF at 11.63:1 contrast (WCAG AA passes).

Color values

HEX#4F256A
RGBrgb(79, 37, 106)
HSLhsl(277, 48%, 28%)
HSVhsv(277, 65%, 42%)
CMYKcmyk(25.5%, 65.1%, 0%, 58.4%)
CIE-LABlab(23.76, 32.96, -32.56)
CIE-LCHlch(23.76, 46.33, 315.35°)
OKLaboklab(35.69% 0.0762 -0.0918)
OKLCHoklch(35.69% 0.119 309.7)
XYZxyz(6.4870, 4.0261, 14.0683)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F256A #406A25
analogous
#2C256A #4F256A #6A2562
triadic
#4F256A #6A4F25 #256A4F
tetradic
#4F256A #6A2C25 #406A25 #25626A
square
#4F256A #6A2C25 #406A25 #25626A
split-complementary
#4F256A #626A25 #256A2C
monochromatic
#110817 #2D153D #4F256A #713597 #924AC0

Accessibility & contrast

On white

11.63
#4F256A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F256A
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F256A#FFFFFF#000000##FFFFFF
##4F256A1.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#06376C
Deuteranopia (green-blind)
#1C3968
Tritanopia (blue-blind)
#4B3243
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4f256a;
/* rgb */ color: rgb(79, 37, 106);
/* oklch */ color: oklch(35.7% 0.119 309.7);
Tailwind
colors: {
  custom: {
    50: '#836295',
    500: '#4f256a',
    950: '#000000',
  },
}
SCSS
$custom: #4f256a;
$custom-light: #836295;
$custom-dark: #000000;
JSON
{
  "hex": "#4f256a",
  "rgb": {
    "r": 79,
    "g": 37,
    "b": 106
  },
  "hsl": {
    "h": 276.522,
    "s": 48.252,
    "l": 28.039
  },
  "oklch": {
    "l": 0.35693,
    "c": 0.11931,
    "h": 309.7
  },
  "luminance": 0.04026
}

Semantic roles & 50–950 ramp

primary
#4F256A
secondary
#6D9D4E
accent
#D85085
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050D
muted
#7C797E

Preview Lab

Preview with #4F256A

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

Preview Lab → · Contrast checker → · Palette generator →

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