#4F26A5#4F26A5

#4F26A5 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.8% C 0.187 H 290.2°. Best body text is #FFFFFF at 9.75:1 contrast (WCAG AA passes).

Color values

HEX#4F26A5
RGBrgb(79, 38, 165)
HSLhsl(259, 63%, 40%)
HSVhsv(259, 77%, 65%)
CMYKcmyk(52.1%, 77%, 0%, 35.3%)
CIE-LABlab(28.81, 48.33, -61.21)
CIE-LCHlch(28.81, 77.99, 308.29°)
OKLaboklab(40.81% 0.0647 -0.1759)
OKLCHoklch(40.81% 0.187 290.2)
XYZxyz(10.7071, 5.7646, 36.1385)
Luminance0.0576 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F26A5 #7CA526
analogous
#263DA5 #4F26A5 #8F26A5
triadic
#4F26A5 #A54F26 #26A54F
tetradic
#4F26A5 #A5263D #7CA526 #26A58F
square
#4F26A5 #A5263D #7CA526 #26A58F
split-complementary
#4F26A5 #A58F26 #3DA526
monochromatic
#1F0F42 #371B73 #4F26A5 #6937D1 #8E69DC

Accessibility & contrast

On white

9.75
#4F26A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F26A5
9.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F26A5#FFFFFF#000000##FFFFFF
##4F26A51.009.752.159.75
#FFFFFF9.751.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A9
Deuteranopia (green-blind)
#0041A3
Tritanopia (blue-blind)
#304964
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4f26a5;
/* rgb */ color: rgb(79, 38, 165);
/* oklch */ color: oklch(40.8% 0.187 290.2);
Tailwind
colors: {
  custom: {
    50: '#8a65c1',
    500: '#4f26a5',
    950: '#000000',
  },
}
SCSS
$custom: #4f26a5;
$custom-light: #8a65c1;
$custom-dark: #000000;
JSON
{
  "hex": "#4f26a5",
  "rgb": {
    "r": 79,
    "g": 38,
    "b": 165
  },
  "hsl": {
    "h": 259.37,
    "s": 62.562,
    "l": 39.804
  },
  "oklch": {
    "l": 0.40806,
    "c": 0.18744,
    "h": 290.2
  },
  "luminance": 0.05765
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4F26A5

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

Preview Lab → · Contrast checker → · Palette generator →

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