#4F26A6#4F26A6

#4F26A6 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.9% C 0.189 H 290.0°. Best body text is #FFFFFF at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#4F26A6
RGBrgb(79, 38, 166)
HSLhsl(259, 63%, 40%)
HSVhsv(259, 77%, 65%)
CMYKcmyk(52.4%, 77.1%, 0%, 34.9%)
CIE-LABlab(28.91, 48.61, -61.66)
CIE-LCHlch(28.91, 78.52, 308.25°)
OKLaboklab(40.9% 0.0644 -0.1772)
OKLCHoklch(40.9% 0.189 290)
XYZxyz(10.7985, 5.8012, 36.6198)
Luminance0.0580 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F26A6 #7DA626
analogous
#263DA6 #4F26A6 #8F26A6
triadic
#4F26A6 #A64F26 #26A64F
tetradic
#4F26A6 #A6263D #7DA626 #26A68F
square
#4F26A6 #A6263D #7DA626 #26A68F
split-complementary
#4F26A6 #A68F26 #3DA626
monochromatic
#200F42 #371B74 #4F26A6 #6938D1 #8F6ADD

Accessibility & contrast

On white

9.72
#4F26A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#4F26A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F26A6
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F26A6#FFFFFF#000000##FFFFFF
##4F26A61.009.722.169.72
#FFFFFF9.721.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AA
Deuteranopia (green-blind)
#0041A4
Tritanopia (blue-blind)
#2F4A65
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4f26a6;
/* rgb */ color: rgb(79, 38, 166);
/* oklch */ color: oklch(40.9% 0.189 290.0);
Tailwind
colors: {
  custom: {
    50: '#8a65c2',
    500: '#4f26a6',
    950: '#000000',
  },
}
SCSS
$custom: #4f26a6;
$custom-light: #8a65c2;
$custom-dark: #000000;
JSON
{
  "hex": "#4f26a6",
  "rgb": {
    "r": 79,
    "g": 38,
    "b": 166
  },
  "hsl": {
    "h": 259.219,
    "s": 62.745,
    "l": 40
  },
  "oklch": {
    "l": 0.40901,
    "c": 0.18858,
    "h": 290
  },
  "luminance": 0.05802
}

Semantic roles & 50–950 ramp

primary
#4F26A6
secondary
#A5C365
accent
#E642B1
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #4F26A6

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

Preview Lab → · Contrast checker → · Palette generator →

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