#4F26A1#4F26A1

#4F26A1 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.4% C 0.183 H 291.1°. Best body text is #FFFFFF at 9.89:1 contrast (WCAG AA passes).

Color values

HEX#4F26A1
RGBrgb(79, 38, 161)
HSLhsl(260, 62%, 39%)
HSVhsv(260, 76%, 63%)
CMYKcmyk(50.9%, 76.4%, 0%, 36.9%)
CIE-LABlab(28.44, 47.22, -59.41)
CIE-LCHlch(28.44, 75.89, 308.48°)
OKLaboklab(40.43% 0.0658 -0.1706)
OKLCHoklch(40.43% 0.183 291.1)
XYZxyz(10.3488, 5.6213, 34.2510)
Luminance0.0562 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F26A1 #78A126
analogous
#263BA1 #4F26A1 #8D26A1
triadic
#4F26A1 #A14F26 #26A14F
tetradic
#4F26A1 #A1263B #78A126 #26A18D
square
#4F26A1 #A1263B #78A126 #26A18D
split-complementary
#4F26A1 #A18D26 #3BA126
monochromatic
#1E0F3E #371A6F #4F26A1 #6835CF #8D66DB

Accessibility & contrast

On white

9.89
#4F26A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#4F26A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F26A1
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F26A1#FFFFFF#000000##FFFFFF
##4F26A11.009.892.129.89
#FFFFFF9.891.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A4
Deuteranopia (green-blind)
#00409F
Tritanopia (blue-blind)
#334862
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4f26a1;
/* rgb */ color: rgb(79, 38, 161);
/* oklch */ color: oklch(40.4% 0.183 291.1);
Tailwind
colors: {
  custom: {
    50: '#8965be',
    500: '#4f26a1',
    950: '#000000',
  },
}
SCSS
$custom: #4f26a1;
$custom-light: #8965be;
$custom-dark: #000000;
JSON
{
  "hex": "#4f26a1",
  "rgb": {
    "r": 79,
    "g": 38,
    "b": 161
  },
  "hsl": {
    "h": 260,
    "s": 61.809,
    "l": 39.02
  },
  "oklch": {
    "l": 0.4043,
    "c": 0.18287,
    "h": 291.1
  },
  "luminance": 0.05622
}

Semantic roles & 50–950 ramp

primary
#4F26A1
secondary
#A1C162
accent
#E543AF
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0D0612
muted
#7D7A81

Preview Lab

Preview with #4F26A1

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

Preview Lab → · Contrast checker → · Palette generator →

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