#4F2FB2#4F2FB2

#4F2FB2 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.1% C 0.193 H 286.3°. Best body text is #FFFFFF at 8.82:1 contrast (WCAG AA passes).

Color values

HEX#4F2FB2
RGBrgb(79, 47, 178)
HSLhsl(255, 58%, 44%)
HSVhsv(255, 74%, 70%)
CMYKcmyk(55.6%, 73.6%, 0%, 30.2%)
CIE-LABlab(31.60, 47.56, -64.44)
CIE-LCHlch(31.60, 80.09, 306.43°)
OKLaboklab(43.14% 0.0543 -0.1854)
OKLCHoklch(43.14% 0.193 286.3)
XYZxyz(12.2744, 6.9090, 42.7976)
Luminance0.0691 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2FB2 #92B22F
analogous
#2F51B2 #4F2FB2 #902FB2
triadic
#4F2FB2 #B24F2F #2FB24F
tetradic
#4F2FB2 #B22F51 #92B22F #2FB290
square
#4F2FB2 #B22F51 #92B22F #2FB290
split-complementary
#4F2FB2 #B2902F #51B22F
monochromatic
#241551 #3A2282 #4F2FB2 #6E4ED0 #957EDD

Accessibility & contrast

On white

8.82
#4F2FB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#4F2FB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2FB2
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2FB2#FFFFFF#000000##FFFFFF
##4F2FB21.008.822.388.82
#FFFFFF8.821.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB6
Deuteranopia (green-blind)
#0046B0
Tritanopia (blue-blind)
#22536E
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4f2fb2;
/* rgb */ color: rgb(79, 47, 178);
/* oklch */ color: oklch(43.1% 0.193 286.3);
Tailwind
colors: {
  custom: {
    50: '#8b6bca',
    500: '#4f2fb2',
    950: '#000000',
  },
}
SCSS
$custom: #4f2fb2;
$custom-light: #8b6bca;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2fb2",
  "rgb": {
    "r": 79,
    "g": 47,
    "b": 178
  },
  "hsl": {
    "h": 254.656,
    "s": 58.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.43137,
    "c": 0.1932,
    "h": 286.3
  },
  "luminance": 0.0691
}

Semantic roles & 50–950 ramp

primary
#4F2FB2
secondary
#B3C677
accent
#E146BC
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #4F2FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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