#4F26B1#4F26B1

#4F26B1 is a dark, highly saturated violet. Relative luminance 0.062; OKLCH L 42.0% C 0.201 H 287.7°. Best body text is #FFFFFF at 9.36:1 contrast (WCAG AA passes).

Color values

HEX#4F26B1
RGBrgb(79, 38, 177)
HSLhsl(258, 65%, 42%)
HSVhsv(258, 79%, 69%)
CMYKcmyk(55.4%, 78.5%, 0%, 30.6%)
CIE-LABlab(29.97, 51.66, -66.52)
CIE-LCHlch(29.97, 84.23, 307.83°)
OKLaboklab(41.96% 0.0612 -0.1914)
OKLCHoklch(41.96% 0.201 287.7)
XYZxyz(11.8510, 6.2222, 42.1630)
Luminance0.0622 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F26B1 #88B126
analogous
#2642B1 #4F26B1 #9526B1
triadic
#4F26B1 #B14F26 #26B14F
tetradic
#4F26B1 #B12642 #88B126 #26B195
square
#4F26B1 #B12642 #88B126 #26B195
split-complementary
#4F26B1 #B19526 #42B126
monochromatic
#22104C #391B7F #4F26B1 #6B3FD6 #9271E0

Accessibility & contrast

On white

9.36
#4F26B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#4F26B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F26B1
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F26B1#FFFFFF#000000##FFFFFF
##4F26B11.009.362.249.36
#FFFFFF9.361.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB5
Deuteranopia (green-blind)
#0043AE
Tritanopia (blue-blind)
#254E6B
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4f26b1;
/* rgb */ color: rgb(79, 38, 177);
/* oklch */ color: oklch(42.0% 0.201 287.7);
Tailwind
colors: {
  custom: {
    50: '#8b66ca',
    500: '#4f26b1',
    950: '#000000',
  },
}
SCSS
$custom: #4f26b1;
$custom-light: #8b66ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4f26b1",
  "rgb": {
    "r": 79,
    "g": 38,
    "b": 177
  },
  "hsl": {
    "h": 257.698,
    "s": 64.651,
    "l": 42.157
  },
  "oklch": {
    "l": 0.41963,
    "c": 0.201,
    "h": 287.7
  },
  "luminance": 0.06223
}

Semantic roles & 50–950 ramp

primary
#4F26B1
secondary
#ACC76B
accent
#E840B6
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4F26B1

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

Preview Lab → · Contrast checker → · Palette generator →

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