#4F297C#4F297C

#4F297C is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.6% C 0.135 H 301.2°. Best body text is #FFFFFF at 10.82:1 contrast (WCAG AA passes).

Color values

HEX#4F297C
RGBrgb(79, 41, 124)
HSLhsl(267, 50%, 32%)
HSVhsv(267, 67%, 49%)
CMYKcmyk(36.3%, 66.9%, 0%, 51.4%)
CIE-LABlab(25.87, 35.44, -40.67)
CIE-LCHlch(25.87, 53.95, 311.07°)
OKLaboklab(37.64% 0.0699 -0.1156)
OKLCHoklch(37.64% 0.135 301.2)
XYZxyz(7.6546, 4.7033, 19.5694)
Luminance0.0470 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F297C #567C29
analogous
#292C7C #4F297C #79297C
triadic
#4F297C #7C4F29 #297C4F
tetradic
#4F297C #7C292C #567C29 #297C79
square
#4F297C #7C292C #567C29 #297C79
split-complementary
#4F297C #7C7929 #2C7C29
monochromatic
#140B20 #321A4E #4F297C #6C38AA #8B58C8

Accessibility & contrast

On white

10.82
#4F297C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#4F297C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F297C
10.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F297C#FFFFFF#000000##FFFFFF
##4F297C1.0010.821.9410.82
#FFFFFF10.821.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D7F
Deuteranopia (green-blind)
#063D7A
Tritanopia (blue-blind)
#463B4E
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4f297c;
/* rgb */ color: rgb(79, 41, 124);
/* oklch */ color: oklch(37.6% 0.135 301.2);
Tailwind
colors: {
  custom: {
    50: '#8465a2',
    500: '#4f297c',
    950: '#000000',
  },
}
SCSS
$custom: #4f297c;
$custom-light: #8465a2;
$custom-dark: #000000;
JSON
{
  "hex": "#4f297c",
  "rgb": {
    "r": 79,
    "g": 41,
    "b": 124
  },
  "hsl": {
    "h": 267.47,
    "s": 50.303,
    "l": 32.353
  },
  "oklch": {
    "l": 0.37636,
    "c": 0.13511,
    "h": 301.2
  },
  "luminance": 0.04703
}

Semantic roles & 50–950 ramp

primary
#4F297C
secondary
#84AD54
accent
#DA4E9A
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4F297C

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

Preview Lab → · Contrast checker → · Palette generator →

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