#4F2CBA#4F2CBA

#4F2CBA is a dark, highly saturated violet. Relative luminance 0.070; OKLCH L 43.5% C 0.206 H 285.4°. Best body text is #FFFFFF at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#4F2CBA
RGBrgb(79, 44, 186)
HSLhsl(255, 62%, 45%)
HSVhsv(255, 76%, 73%)
CMYKcmyk(57.5%, 76.3%, 0%, 27.1%)
CIE-LABlab(31.83, 51.38, -68.81)
CIE-LCHlch(31.83, 85.88, 306.74°)
OKLaboklab(43.53% 0.0545 -0.1982)
OKLCHoklch(43.53% 0.206 285.4)
XYZxyz(12.9854, 7.0080, 47.1133)
Luminance0.0701 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2CBA #97BA2C
analogous
#2C50BA #4F2CBA #962CBA
triadic
#4F2CBA #BA4F2C #2CBA4F
tetradic
#4F2CBA #BA2C50 #97BA2C #2CBA96
square
#4F2CBA #BA2C50 #97BA2C #2CBA96
split-complementary
#4F2CBA #BA962C #50BA2C
monochromatic
#251557 #3A2089 #4F2CBA #6F4ED5 #9880E1

Accessibility & contrast

On white

8.74
#4F2CBA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#4F2CBA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2CBA
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2CBA#FFFFFF#000000##FFFFFF
##4F2CBA1.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FBE
Deuteranopia (green-blind)
#0046B7
Tritanopia (blue-blind)
#175572
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #4f2cba;
/* rgb */ color: rgb(79, 44, 186);
/* oklch */ color: oklch(43.5% 0.206 285.4);
Tailwind
colors: {
  custom: {
    50: '#8d6ad0',
    500: '#4f2cba',
    950: '#000000',
  },
}
SCSS
$custom: #4f2cba;
$custom-light: #8d6ad0;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2cba",
  "rgb": {
    "r": 79,
    "g": 44,
    "b": 186
  },
  "hsl": {
    "h": 254.789,
    "s": 61.739,
    "l": 45.098
  },
  "oklch": {
    "l": 0.43526,
    "c": 0.20555,
    "h": 285.4
  },
  "luminance": 0.07009
}

Semantic roles & 50–950 ramp

primary
#4F2CBA
secondary
#B6CA78
accent
#E543BD
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #4F2CBA

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

Preview Lab → · Contrast checker → · Palette generator →

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