#4F2F9C#4F2F9C

#4F2F9C is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.2% C 0.167 H 290.7°. Best body text is #FFFFFF at 9.46:1 contrast (WCAG AA passes).

Color values

HEX#4F2F9C
RGBrgb(79, 47, 156)
HSLhsl(258, 54%, 40%)
HSVhsv(258, 70%, 61%)
CMYKcmyk(49.4%, 69.9%, 0%, 38.8%)
CIE-LABlab(29.65, 41.14, -54.38)
CIE-LCHlch(29.65, 68.19, 307.11°)
OKLaboklab(41.15% 0.0588 -0.1559)
OKLCHoklch(41.15% 0.167 290.7)
XYZxyz(10.2400, 6.0952, 32.0830)
Luminance0.0610 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2F9C #7C9C2F
analogous
#2F459C #4F2F9C #862F9C
triadic
#4F2F9C #9C4F2F #2F9C4F
tetradic
#4F2F9C #9C2F45 #7C9C2F #2F9C86
square
#4F2F9C #9C2F45 #7C9C2F #2F9C86
split-complementary
#4F2F9C #9C862F #459C2F
monochromatic
#1F133E #37216D #4F2F9C #6942C6 #8E71D4

Accessibility & contrast

On white

9.46
#4F2F9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#4F2F9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2F9C
9.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2F9C#FFFFFF#000000##FFFFFF
##4F2F9C1.009.462.229.46
#FFFFFF9.461.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489F
Deuteranopia (green-blind)
#00439A
Tritanopia (blue-blind)
#364A62
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4f2f9c;
/* rgb */ color: rgb(79, 47, 156);
/* oklch */ color: oklch(41.2% 0.167 290.7);
Tailwind
colors: {
  custom: {
    50: '#886aba',
    500: '#4f2f9c',
    950: '#000000',
  },
}
SCSS
$custom: #4f2f9c;
$custom-light: #886aba;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2f9c",
  "rgb": {
    "r": 79,
    "g": 47,
    "b": 156
  },
  "hsl": {
    "h": 257.615,
    "s": 53.695,
    "l": 39.804
  },
  "oklch": {
    "l": 0.41154,
    "c": 0.16663,
    "h": 290.7
  },
  "luminance": 0.06096
}

Semantic roles & 50–950 ramp

primary
#4F2F9C
secondary
#A4BC6B
accent
#DD4BB2
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4F2F9C

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

Preview Lab → · Contrast checker → · Palette generator →

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