#4F2697#4F2697

#4F2697 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.5% C 0.171 H 293.5°. Best body text is #FFFFFF at 10.21:1 contrast (WCAG AA passes).

Color values

HEX#4F2697
RGBrgb(79, 38, 151)
HSLhsl(262, 60%, 37%)
HSVhsv(262, 75%, 59%)
CMYKcmyk(47.7%, 74.8%, 0%, 40.8%)
CIE-LABlab(27.53, 44.45, -54.80)
CIE-LCHlch(27.53, 70.56, 309.05°)
OKLaboklab(39.51% 0.0684 -0.1571)
OKLCHoklch(39.51% 0.171 293.5)
XYZxyz(9.5019, 5.2826, 29.7911)
Luminance0.0528 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2697 #6E9726
analogous
#263697 #4F2697 #882697
triadic
#4F2697 #974F26 #26974F
tetradic
#4F2697 #972636 #6E9726 #269788
square
#4F2697 #972636 #6E9726 #269788
split-complementary
#4F2697 #978826 #369726
monochromatic
#1C0D35 #351A66 #4F2697 #6932C8 #8B60D7

Accessibility & contrast

On white

10.21
#4F2697 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#4F2697 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2697
10.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2697#FFFFFF#000000##FFFFFF
##4F26971.0010.212.0610.21
#FFFFFF10.211.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429A
Deuteranopia (green-blind)
#003F95
Tritanopia (blue-blind)
#39445C
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4f2697;
/* rgb */ color: rgb(79, 38, 151);
/* oklch */ color: oklch(39.5% 0.171 293.5);
Tailwind
colors: {
  custom: {
    50: '#8865b7',
    500: '#4f2697',
    950: '#000000',
  },
}
SCSS
$custom: #4f2697;
$custom-light: #8865b7;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2697",
  "rgb": {
    "r": 79,
    "g": 38,
    "b": 151
  },
  "hsl": {
    "h": 261.77,
    "s": 59.788,
    "l": 37.059
  },
  "oklch": {
    "l": 0.39509,
    "c": 0.17134,
    "h": 293.5
  },
  "luminance": 0.05283
}

Semantic roles & 50–950 ramp

primary
#4F2697
secondary
#9ABC5C
accent
#E345AA
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4F2697

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

Preview Lab → · Contrast checker → · Palette generator →

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