#4F2895#4F2895

#4F2895 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.6% C 0.167 H 293.7°. Best body text is #FFFFFF at 10.14:1 contrast (WCAG AA passes).

Color values

HEX#4F2895
RGBrgb(79, 40, 149)
HSLhsl(261, 58%, 37%)
HSVhsv(261, 73%, 58%)
CMYKcmyk(47%, 73.2%, 0%, 41.6%)
CIE-LABlab(27.71, 42.88, -53.27)
CIE-LCHlch(27.71, 68.38, 308.83°)
OKLaboklab(39.58% 0.067 -0.1526)
OKLCHoklch(39.58% 0.167 293.7)
XYZxyz(9.4066, 5.3495, 28.9649)
Luminance0.0535 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2895 #6E9528
analogous
#283895 #4F2895 #862895
triadic
#4F2895 #954F28 #28954F
tetradic
#4F2895 #952838 #6E9528 #289586
square
#4F2895 #952838 #6E9528 #289586
split-complementary
#4F2895 #958628 #389528
monochromatic
#1C0E35 #351B65 #4F2895 #6935C5 #8B62D5

Accessibility & contrast

On white

10.14
#4F2895 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#4F2895 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2895
10.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2895#FFFFFF#000000##FFFFFF
##4F28951.0010.142.0710.14
#FFFFFF10.141.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004398
Deuteranopia (green-blind)
#003F93
Tritanopia (blue-blind)
#3A445C
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4f2895;
/* rgb */ color: rgb(79, 40, 149);
/* oklch */ color: oklch(39.6% 0.167 293.7);
Tailwind
colors: {
  custom: {
    50: '#8766b5',
    500: '#4f2895',
    950: '#000000',
  },
}
SCSS
$custom: #4f2895;
$custom-light: #8766b5;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2895",
  "rgb": {
    "r": 79,
    "g": 40,
    "b": 149
  },
  "hsl": {
    "h": 261.468,
    "s": 57.672,
    "l": 37.059
  },
  "oklch": {
    "l": 0.39584,
    "c": 0.16668,
    "h": 293.7
  },
  "luminance": 0.0535
}

Semantic roles & 50–950 ramp

primary
#4F2895
secondary
#9ABB5E
accent
#E147AA
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4F2895

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

Preview Lab → · Contrast checker → · Palette generator →

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