#4F2297#4F2297

#4F2297 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.0% C 0.176 H 294.2°. Best body text is #FFFFFF at 10.46:1 contrast (WCAG AA passes).

Color values

HEX#4F2297
RGBrgb(79, 34, 151)
HSLhsl(263, 63%, 36%)
HSVhsv(263, 77%, 59%)
CMYKcmyk(47.7%, 77.5%, 0%, 40.8%)
CIE-LABlab(26.85, 46.37, -55.90)
CIE-LCHlch(26.85, 72.63, 309.68°)
OKLaboklab(39.03% 0.0719 -0.1603)
OKLCHoklch(39.03% 0.176 294.2)
XYZxyz(9.3809, 5.0404, 29.7508)
Luminance0.0504 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2297 #6A9722
analogous
#223097 #4F2297 #8A2297
triadic
#4F2297 #974F22 #22974F
tetradic
#4F2297 #972230 #6A9722 #22978A
square
#4F2297 #972230 #6A9722 #22978A
split-complementary
#4F2297 #978A22 #309722
monochromatic
#1B0C33 #351765 #4F2297 #692DC9 #8B5ADA

Accessibility & contrast

On white

10.46
#4F2297 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#4F2297 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2297
10.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2297#FFFFFF#000000##FFFFFF
##4F22971.0010.462.0110.46
#FFFFFF10.461.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419A
Deuteranopia (green-blind)
#003D95
Tritanopia (blue-blind)
#3A425B
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4f2297;
/* rgb */ color: rgb(79, 34, 151);
/* oklch */ color: oklch(39.0% 0.176 294.2);
Tailwind
colors: {
  custom: {
    50: '#8862b7',
    500: '#4f2297',
    950: '#000000',
  },
}
SCSS
$custom: #4f2297;
$custom-light: #8862b7;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2297",
  "rgb": {
    "r": 79,
    "g": 34,
    "b": 151
  },
  "hsl": {
    "h": 263.077,
    "s": 63.243,
    "l": 36.275
  },
  "oklch": {
    "l": 0.39034,
    "c": 0.1757,
    "h": 294.2
  },
  "luminance": 0.05041
}

Semantic roles & 50–950 ramp

primary
#4F2297
secondary
#96BE57
accent
#E642A7
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #4F2297

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

Preview Lab → · Contrast checker → · Palette generator →

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