#4F259C#4F259C

#4F259C is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.8% C 0.178 H 292.4°. Best body text is #FFFFFF at 10.11:1 contrast (WCAG AA passes).

Color values

HEX#4F259C
RGBrgb(79, 37, 156)
HSLhsl(261, 62%, 38%)
HSVhsv(261, 76%, 61%)
CMYKcmyk(49.4%, 76.3%, 0%, 38.8%)
CIE-LABlab(27.81, 46.32, -57.40)
CIE-LCHlch(27.81, 73.75, 308.90°)
OKLaboklab(39.85% 0.068 -0.1647)
OKLCHoklch(39.85% 0.178 292.4)
XYZxyz(9.8851, 5.3854, 31.9647)
Luminance0.0539 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F259C #729C25
analogous
#25379C #4F259C #8A259C
triadic
#4F259C #9C4F25 #259C4F
tetradic
#4F259C #9C2537 #729C25 #259C8A
square
#4F259C #9C2537 #729C25 #259C8A
split-complementary
#4F259C #9C8A25 #379C25
monochromatic
#1D0E39 #36196B #4F259C #6831CD #8C62DA

Accessibility & contrast

On white

10.11
#4F259C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#4F259C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F259C
10.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F259C#FFFFFF#000000##FFFFFF
##4F259C1.0010.112.0810.11
#FFFFFF10.111.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439F
Deuteranopia (green-blind)
#003F9A
Tritanopia (blue-blind)
#36455F
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4f259c;
/* rgb */ color: rgb(79, 37, 156);
/* oklch */ color: oklch(39.8% 0.178 292.4);
Tailwind
colors: {
  custom: {
    50: '#8864ba',
    500: '#4f259c',
    950: '#000000',
  },
}
SCSS
$custom: #4f259c;
$custom-light: #8864ba;
$custom-dark: #000000;
JSON
{
  "hex": "#4f259c",
  "rgb": {
    "r": 79,
    "g": 37,
    "b": 156
  },
  "hsl": {
    "h": 261.176,
    "s": 61.658,
    "l": 37.843
  },
  "oklch": {
    "l": 0.39846,
    "c": 0.1782,
    "h": 292.4
  },
  "luminance": 0.05386
}

Semantic roles & 50–950 ramp

primary
#4F259C
secondary
#9DBF5E
accent
#E543AC
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4F259C

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

Preview Lab → · Contrast checker → · Palette generator →

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