#4F25B4#4F25B4

#4F25B4 is a dark, highly saturated violet. Relative luminance 0.063; OKLCH L 42.2% C 0.205 H 287.3°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#4F25B4
RGBrgb(79, 37, 180)
HSLhsl(258, 66%, 43%)
HSVhsv(258, 79%, 71%)
CMYKcmyk(56.1%, 79.4%, 0%, 29.4%)
CIE-LABlab(30.11, 52.94, -68.08)
CIE-LCHlch(30.11, 86.24, 307.87°)
OKLaboklab(42.15% 0.061 -0.196)
OKLCHoklch(42.15% 0.205 287.3)
XYZxyz(12.1218, 6.2800, 43.7446)
Luminance0.0628 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F25B4 #8AB425
analogous
#2543B4 #4F25B4 #9625B4
triadic
#4F25B4 #B44F25 #25B44F
tetradic
#4F25B4 #B42543 #8AB425 #25B496
square
#4F25B4 #B42543 #8AB425 #25B496
split-complementary
#4F25B4 #B49625 #43B425
monochromatic
#22104E #391B81 #4F25B4 #6C3FD7 #9371E2

Accessibility & contrast

On white

9.31
#4F25B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#4F25B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F25B4
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F25B4#FFFFFF#000000##FFFFFF
##4F25B41.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB8
Deuteranopia (green-blind)
#0043B1
Tritanopia (blue-blind)
#214F6D
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4f25b4;
/* rgb */ color: rgb(79, 37, 180);
/* oklch */ color: oklch(42.2% 0.205 287.3);
Tailwind
colors: {
  custom: {
    50: '#8c66cc',
    500: '#4f25b4',
    950: '#000000',
  },
}
SCSS
$custom: #4f25b4;
$custom-light: #8c66cc;
$custom-dark: #000000;
JSON
{
  "hex": "#4f25b4",
  "rgb": {
    "r": 79,
    "g": 37,
    "b": 180
  },
  "hsl": {
    "h": 257.622,
    "s": 65.899,
    "l": 42.549
  },
  "oklch": {
    "l": 0.42151,
    "c": 0.20525,
    "h": 287.3
  },
  "luminance": 0.06281
}

Semantic roles & 50–950 ramp

primary
#4F25B4
secondary
#AEC96C
accent
#E93FB7
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4F25B4

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

Preview Lab → · Contrast checker → · Palette generator →

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