#4F2597#4F2597

#4F2597 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.4% C 0.172 H 293.7°. Best body text is #FFFFFF at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#4F2597
RGBrgb(79, 37, 151)
HSLhsl(262, 61%, 37%)
HSVhsv(262, 75%, 59%)
CMYKcmyk(47.7%, 75.5%, 0%, 40.8%)
CIE-LABlab(27.35, 44.94, -55.08)
CIE-LCHlch(27.35, 71.09, 309.21°)
OKLaboklab(39.39% 0.0693 -0.1579)
OKLCHoklch(39.39% 0.172 293.7)
XYZxyz(9.4704, 5.2195, 29.7806)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2597 #6D9725
analogous
#253497 #4F2597 #882597
triadic
#4F2597 #974F25 #25974F
tetradic
#4F2597 #972534 #6D9725 #259788
square
#4F2597 #972534 #6D9725 #259788
split-complementary
#4F2597 #978825 #349725
monochromatic
#1C0D35 #351966 #4F2597 #6931C8 #8B5FD8

Accessibility & contrast

On white

10.27
#4F2597 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#4F2597 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2597
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2597#FFFFFF#000000##FFFFFF
##4F25971.0010.272.0410.27
#FFFFFF10.271.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4f2597;
/* rgb */ color: rgb(79, 37, 151);
/* oklch */ color: oklch(39.4% 0.172 293.7);
Tailwind
colors: {
  custom: {
    50: '#8864b7',
    500: '#4f2597',
    950: '#000000',
  },
}
SCSS
$custom: #4f2597;
$custom-light: #8864b7;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2597",
  "rgb": {
    "r": 79,
    "g": 37,
    "b": 151
  },
  "hsl": {
    "h": 262.105,
    "s": 60.638,
    "l": 36.863
  },
  "oklch": {
    "l": 0.39386,
    "c": 0.17246,
    "h": 293.7
  },
  "luminance": 0.0522
}

Semantic roles & 50–950 ramp

primary
#4F2597
secondary
#99BD5B
accent
#E444A9
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4F2597

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

Preview Lab → · Contrast checker → · Palette generator →

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