#4F26A4#4F26A4

#4F26A4 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.7% C 0.186 H 290.4°. Best body text is #FFFFFF at 9.79:1 contrast (WCAG AA passes).

Color values

HEX#4F26A4
RGBrgb(79, 38, 164)
HSLhsl(260, 62%, 40%)
HSVhsv(260, 77%, 64%)
CMYKcmyk(51.8%, 76.8%, 0%, 35.7%)
CIE-LABlab(28.72, 48.05, -60.76)
CIE-LCHlch(28.72, 77.47, 308.34°)
OKLaboklab(40.71% 0.065 -0.1746)
OKLCHoklch(40.71% 0.186 290.4)
XYZxyz(10.6165, 5.7284, 35.6611)
Luminance0.0573 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F26A4 #7BA426
analogous
#263CA4 #4F26A4 #8E26A4
triadic
#4F26A4 #A44F26 #26A44F
tetradic
#4F26A4 #A4263C #7BA426 #26A48E
square
#4F26A4 #A4263C #7BA426 #26A48E
split-complementary
#4F26A4 #A48E26 #3CA426
monochromatic
#1F0F41 #371A72 #4F26A4 #6937D1 #8E68DC

Accessibility & contrast

On white

9.79
#4F26A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#4F26A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F26A4
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F26A4#FFFFFF#000000##FFFFFF
##4F26A41.009.792.159.79
#FFFFFF9.791.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A8
Deuteranopia (green-blind)
#0041A2
Tritanopia (blue-blind)
#314964
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4f26a4;
/* rgb */ color: rgb(79, 38, 164);
/* oklch */ color: oklch(40.7% 0.186 290.4);
Tailwind
colors: {
  custom: {
    50: '#8965c0',
    500: '#4f26a4',
    950: '#000000',
  },
}
SCSS
$custom: #4f26a4;
$custom-light: #8965c0;
$custom-dark: #000000;
JSON
{
  "hex": "#4f26a4",
  "rgb": {
    "r": 79,
    "g": 38,
    "b": 164
  },
  "hsl": {
    "h": 259.524,
    "s": 62.376,
    "l": 39.608
  },
  "oklch": {
    "l": 0.40712,
    "c": 0.1863,
    "h": 290.4
  },
  "luminance": 0.05729
}

Semantic roles & 50–950 ramp

primary
#4F26A4
secondary
#A3C264
accent
#E542B0
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0612
muted
#7D7A81

Preview Lab

Preview with #4F26A4

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

Preview Lab → · Contrast checker → · Palette generator →

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