#4F2FAF#4F2FAF

#4F2FAF is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.9% C 0.190 H 286.8°. Best body text is #FFFFFF at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#4F2FAF
RGBrgb(79, 47, 175)
HSLhsl(255, 58%, 44%)
HSVhsv(255, 73%, 69%)
CMYKcmyk(54.9%, 73.1%, 0%, 31.4%)
CIE-LABlab(31.32, 46.69, -63.10)
CIE-LCHlch(31.32, 78.49, 306.50°)
OKLaboklab(42.86% 0.055 -0.1815)
OKLCHoklch(42.86% 0.19 286.8)
XYZxyz(11.9765, 6.7898, 41.2286)
Luminance0.0679 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2FAF #8FAF2F
analogous
#2F4FAF #4F2FAF #8F2FAF
triadic
#4F2FAF #AF4F2F #2FAF4F
tetradic
#4F2FAF #AF2F4F #8FAF2F #2FAF8F
square
#4F2FAF #AF2F4F #8FAF2F #2FAF8F
split-complementary
#4F2FAF #AF8F2F #4FAF2F
monochromatic
#23154F #39227F #4F2FAF #6D4CCF #947CDC

Accessibility & contrast

On white

8.91
#4F2FAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#4F2FAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2FAF
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2FAF#FFFFFF#000000##FFFFFF
##4F2FAF1.008.912.368.91
#FFFFFF8.911.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB3
Deuteranopia (green-blind)
#0046AD
Tritanopia (blue-blind)
#26526C
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4f2faf;
/* rgb */ color: rgb(79, 47, 175);
/* oklch */ color: oklch(42.9% 0.190 286.8);
Tailwind
colors: {
  custom: {
    50: '#8b6bc8',
    500: '#4f2faf',
    950: '#000000',
  },
}
SCSS
$custom: #4f2faf;
$custom-light: #8b6bc8;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2faf",
  "rgb": {
    "r": 79,
    "g": 47,
    "b": 175
  },
  "hsl": {
    "h": 255,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.42859,
    "c": 0.18964,
    "h": 286.8
  },
  "luminance": 0.0679
}

Semantic roles & 50–950 ramp

primary
#4F2FAF
secondary
#B1C475
accent
#E147BA
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #4F2FAF

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

Preview Lab → · Contrast checker → · Palette generator →

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