#4F2FB8#4F2FB8

#4F2FB8 is a dark, highly saturated violet. Relative luminance 0.072; OKLCH L 43.7% C 0.200 H 285.3°. Best body text is #FFFFFF at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#4F2FB8
RGBrgb(79, 47, 184)
HSLhsl(254, 59%, 45%)
HSVhsv(254, 74%, 72%)
CMYKcmyk(57.1%, 74.5%, 0%, 27.8%)
CIE-LABlab(32.16, 49.31, -67.08)
CIE-LCHlch(32.16, 83.26, 306.32°)
OKLaboklab(43.7% 0.0528 -0.1932)
OKLCHoklch(43.7% 0.2 285.3)
XYZxyz(12.8901, 7.1552, 46.0400)
Luminance0.0716 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2FB8 #98B82F
analogous
#2F53B8 #4F2FB8 #942FB8
triadic
#4F2FB8 #B84F2F #2FB84F
tetradic
#4F2FB8 #B82F53 #98B82F #2FB894
square
#4F2FB8 #B82F53 #98B82F #2FB894
split-complementary
#4F2FB8 #B8942F #53B82F
monochromatic
#251657 #3A2387 #4F2FB8 #7052D3 #9882DF

Accessibility & contrast

On white

8.64
#4F2FB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#4F2FB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2FB8
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2FB8#FFFFFF#000000##FFFFFF
##4F2FB81.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FBC
Deuteranopia (green-blind)
#0047B5
Tritanopia (blue-blind)
#1A5571
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #4f2fb8;
/* rgb */ color: rgb(79, 47, 184);
/* oklch */ color: oklch(43.7% 0.200 285.3);
Tailwind
colors: {
  custom: {
    50: '#8c6bce',
    500: '#4f2fb8',
    950: '#000000',
  },
}
SCSS
$custom: #4f2fb8;
$custom-light: #8c6bce;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2fb8",
  "rgb": {
    "r": 79,
    "g": 47,
    "b": 184
  },
  "hsl": {
    "h": 254.015,
    "s": 59.307,
    "l": 45.294
  },
  "oklch": {
    "l": 0.43702,
    "c": 0.20026,
    "h": 285.3
  },
  "luminance": 0.07156
}

Semantic roles & 50–950 ramp

primary
#4F2FB8
secondary
#B6C87B
accent
#E245BE
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #4F2FB8

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

Preview Lab → · Contrast checker → · Palette generator →

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