#4F2698#4F2698

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

Color values

HEX#4F2698
RGBrgb(79, 38, 152)
HSLhsl(262, 60%, 37%)
HSVhsv(262, 75%, 60%)
CMYKcmyk(48%, 75%, 0%, 40.4%)
CIE-LABlab(27.61, 44.73, -55.26)
CIE-LCHlch(27.61, 71.09, 308.98°)
OKLaboklab(39.6% 0.0682 -0.1585)
OKLCHoklch(39.6% 0.173 293.3)
XYZxyz(9.5835, 5.3152, 30.2207)
Luminance0.0532 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2698 #6F9826
analogous
#263698 #4F2698 #882698
triadic
#4F2698 #984F26 #26984F
tetradic
#4F2698 #982636 #6F9826 #269888
square
#4F2698 #982636 #6F9826 #269888
split-complementary
#4F2698 #988826 #369826
monochromatic
#1C0E36 #361A67 #4F2698 #6832C9 #8C61D7

Accessibility & contrast

On white

10.18
#4F2698 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F2698
10.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2698#FFFFFF#000000##FFFFFF
##4F26981.0010.182.0610.18
#FFFFFF10.181.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439B
Deuteranopia (green-blind)
#003F96
Tritanopia (blue-blind)
#39445D
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4f2698;
/* rgb */ color: rgb(79, 38, 152);
/* oklch */ color: oklch(39.6% 0.173 293.3);
Tailwind
colors: {
  custom: {
    50: '#8865b7',
    500: '#4f2698',
    950: '#000000',
  },
}
SCSS
$custom: #4f2698;
$custom-light: #8865b7;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2698",
  "rgb": {
    "r": 79,
    "g": 38,
    "b": 152
  },
  "hsl": {
    "h": 261.579,
    "s": 60,
    "l": 37.255
  },
  "oklch": {
    "l": 0.396,
    "c": 0.17251,
    "h": 293.3
  },
  "luminance": 0.05315
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4F2698

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

Preview Lab → · Contrast checker → · Palette generator →

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