#4F2782#4F2782

#4F2782 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.8% C 0.145 H 299.5°. Best body text is #FFFFFF at 10.80:1 contrast (WCAG AA passes).

Color values

HEX#4F2782
RGBrgb(79, 39, 130)
HSLhsl(266, 54%, 33%)
HSVhsv(266, 70%, 51%)
CMYKcmyk(39.2%, 70%, 0%, 49%)
CIE-LABlab(25.94, 38.16, -44.35)
CIE-LCHlch(25.94, 58.51, 310.71°)
OKLaboklab(37.83% 0.0716 -0.1264)
OKLCHoklch(37.83% 0.145 299.5)
XYZxyz(7.9782, 4.7249, 21.6064)
Luminance0.0473 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2782 #5A8227
analogous
#272C82 #4F2782 #7C2782
triadic
#4F2782 #824F27 #27824F
tetradic
#4F2782 #82272C #5A8227 #27827C
square
#4F2782 #82272C #5A8227 #27827C
split-complementary
#4F2782 #827C27 #2C8227
monochromatic
#160B24 #321953 #4F2782 #6C35B1 #8B57CD

Accessibility & contrast

On white

10.80
#4F2782 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#4F2782 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2782
10.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2782#FFFFFF#000000##FFFFFF
##4F27821.0010.801.9510.80
#FFFFFF10.801.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D85
Deuteranopia (green-blind)
#003D80
Tritanopia (blue-blind)
#433C51
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4f2782;
/* rgb */ color: rgb(79, 39, 130);
/* oklch */ color: oklch(37.8% 0.145 299.5);
Tailwind
colors: {
  custom: {
    50: '#8564a7',
    500: '#4f2782',
    950: '#000000',
  },
}
SCSS
$custom: #4f2782;
$custom-light: #8564a7;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2782",
  "rgb": {
    "r": 79,
    "g": 39,
    "b": 130
  },
  "hsl": {
    "h": 266.374,
    "s": 53.846,
    "l": 33.137
  },
  "oklch": {
    "l": 0.37828,
    "c": 0.14526,
    "h": 299.5
  },
  "luminance": 0.04725
}

Semantic roles & 50–950 ramp

primary
#4F2782
secondary
#88B153
accent
#DD4B9D
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4F2782

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

Preview Lab → · Contrast checker → · Palette generator →

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