#4F2CA8#4F2CA8

#4F2CA8 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.8% C 0.185 H 288.7°. Best body text is #FFFFFF at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#4F2CA8
RGBrgb(79, 44, 168)
HSLhsl(257, 58%, 42%)
HSVhsv(257, 74%, 66%)
CMYKcmyk(53%, 73.8%, 0%, 34.1%)
CIE-LABlab(30.13, 46.21, -60.85)
CIE-LCHlch(30.13, 76.41, 307.21°)
OKLaboklab(41.82% 0.0591 -0.1749)
OKLCHoklch(41.82% 0.185 288.7)
XYZxyz(11.1909, 6.2903, 37.6627)
Luminance0.0629 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2CA8 #85A82C
analogous
#2C47A8 #4F2CA8 #8D2CA8
triadic
#4F2CA8 #A84F2C #2CA84F
tetradic
#4F2CA8 #A82C47 #85A82C #2CA88D
square
#4F2CA8 #A82C47 #85A82C #2CA88D
split-complementary
#4F2CA8 #A88D2C #47A82C
monochromatic
#211347 #381F78 #4F2CA8 #6A43CE #9174DB

Accessibility & contrast

On white

9.30
#4F2CA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#4F2CA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2CA8
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2CA8#FFFFFF#000000##FFFFFF
##4F2CA81.009.302.269.30
#FFFFFF9.301.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAC
Deuteranopia (green-blind)
#0044A6
Tritanopia (blue-blind)
#2D4D67
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4f2ca8;
/* rgb */ color: rgb(79, 44, 168);
/* oklch */ color: oklch(41.8% 0.185 288.7);
Tailwind
colors: {
  custom: {
    50: '#8a69c3',
    500: '#4f2ca8',
    950: '#000000',
  },
}
SCSS
$custom: #4f2ca8;
$custom-light: #8a69c3;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2ca8",
  "rgb": {
    "r": 79,
    "g": 44,
    "b": 168
  },
  "hsl": {
    "h": 256.935,
    "s": 58.491,
    "l": 41.569
  },
  "oklch": {
    "l": 0.41822,
    "c": 0.18461,
    "h": 288.7
  },
  "luminance": 0.06291
}

Semantic roles & 50–950 ramp

primary
#4F2CA8
secondary
#AAC26E
accent
#E246B6
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4F2CA8

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

Preview Lab → · Contrast checker → · Palette generator →

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