#4F256C#4F256C

#4F256C is a dark, vivid violet. Relative luminance 0.041; OKLCH L 35.8% C 0.122 H 308.7°. Best body text is #FFFFFF at 11.58:1 contrast (WCAG AA passes).

Color values

HEX#4F256C
RGBrgb(79, 37, 108)
HSLhsl(275, 49%, 28%)
HSVhsv(275, 66%, 42%)
CMYKcmyk(26.9%, 65.7%, 0%, 57.6%)
CIE-LABlab(23.90, 33.47, -33.63)
CIE-LCHlch(23.90, 47.45, 314.86°)
OKLaboklab(35.84% 0.0762 -0.0949)
OKLCHoklch(35.84% 0.122 308.7)
XYZxyz(6.5923, 4.0682, 14.6224)
Luminance0.0407 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F256C #426C25
analogous
#2B256C #4F256C #6C2565
triadic
#4F256C #6C4F25 #256C4F
tetradic
#4F256C #6C2B25 #426C25 #25656C
square
#4F256C #6C2B25 #426C25 #25656C
split-complementary
#4F256C #656C25 #256C2B
monochromatic
#110817 #2E153E #4F256C #70359A #914AC1

Accessibility & contrast

On white

11.58
#4F256C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F256C
11.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F256C#FFFFFF#000000##FFFFFF
##4F256C1.0011.581.8111.58
#FFFFFF11.581.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#02376E
Deuteranopia (green-blind)
#1A396A
Tritanopia (blue-blind)
#4B3345
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4f256c;
/* rgb */ color: rgb(79, 37, 108);
/* oklch */ color: oklch(35.8% 0.122 308.7);
Tailwind
colors: {
  custom: {
    50: '#836296',
    500: '#4f256c',
    950: '#000000',
  },
}
SCSS
$custom: #4f256c;
$custom-light: #836296;
$custom-dark: #000000;
JSON
{
  "hex": "#4f256c",
  "rgb": {
    "r": 79,
    "g": 37,
    "b": 108
  },
  "hsl": {
    "h": 275.493,
    "s": 48.966,
    "l": 28.431
  },
  "oklch": {
    "l": 0.35837,
    "c": 0.1217,
    "h": 308.7
  },
  "luminance": 0.04068
}

Semantic roles & 50–950 ramp

primary
#4F256C
secondary
#6F9F4E
accent
#D94F87
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050D
muted
#7C797E

Preview Lab

Preview with #4F256C

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

Preview Lab → · Contrast checker → · Palette generator →

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