#4F297D#4F297D

#4F297D is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.7% C 0.136 H 300.8°. Best body text is #FFFFFF at 10.79:1 contrast (WCAG AA passes).

Color values

HEX#4F297D
RGBrgb(79, 41, 125)
HSLhsl(267, 51%, 33%)
HSVhsv(267, 67%, 49%)
CMYKcmyk(36.8%, 67.2%, 0%, 51%)
CIE-LABlab(25.95, 35.71, -41.18)
CIE-LCHlch(25.95, 54.51, 310.93°)
OKLaboklab(37.71% 0.0698 -0.1171)
OKLCHoklch(37.71% 0.136 300.8)
XYZxyz(7.7182, 4.7288, 19.9042)
Luminance0.0473 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F297D #577D29
analogous
#292D7D #4F297D #79297D
triadic
#4F297D #7D4F29 #297D4F
tetradic
#4F297D #7D292D #577D29 #297D79
square
#4F297D #7D292D #577D29 #297D79
split-complementary
#4F297D #7D7929 #2D7D29
monochromatic
#150B21 #321A4F #4F297D #6C38AB #8B58C8

Accessibility & contrast

On white

10.79
#4F297D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F297D
10.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F297D#FFFFFF#000000##FFFFFF
##4F297D1.0010.791.9510.79
#FFFFFF10.791.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D80
Deuteranopia (green-blind)
#033D7B
Tritanopia (blue-blind)
#453C4F
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4f297d;
/* rgb */ color: rgb(79, 41, 125);
/* oklch */ color: oklch(37.7% 0.136 300.8);
Tailwind
colors: {
  custom: {
    50: '#8465a3',
    500: '#4f297d',
    950: '#000000',
  },
}
SCSS
$custom: #4f297d;
$custom-light: #8465a3;
$custom-dark: #000000;
JSON
{
  "hex": "#4f297d",
  "rgb": {
    "r": 79,
    "g": 41,
    "b": 125
  },
  "hsl": {
    "h": 267.143,
    "s": 50.602,
    "l": 32.549
  },
  "oklch": {
    "l": 0.37714,
    "c": 0.13635,
    "h": 300.8
  },
  "luminance": 0.04729
}

Semantic roles & 50–950 ramp

primary
#4F297D
secondary
#85AE54
accent
#DA4E9B
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4F297D

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

Preview Lab → · Contrast checker → · Palette generator →

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