#4B25B2#4B25B2

#4B25B2 is a dark, highly saturated violet. Relative luminance 0.060; OKLCH L 41.6% C 0.203 H 285.8°. Best body text is #FFFFFF at 9.52:1 contrast (WCAG AA passes).

Color values

HEX#4B25B2
RGBrgb(75, 37, 178)
HSLhsl(256, 66%, 42%)
HSVhsv(256, 79%, 70%)
CMYKcmyk(57.9%, 79.2%, 0%, 30.2%)
CIE-LABlab(29.49, 51.89, -67.91)
CIE-LCHlch(29.49, 85.47, 307.38°)
OKLaboklab(41.57% 0.0554 -0.1956)
OKLCHoklch(41.57% 0.203 285.8)
XYZxyz(11.5967, 6.0327, 42.6642)
Luminance0.0603 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B25B2 #8CB225
analogous
#2546B2 #4B25B2 #9125B2
triadic
#4B25B2 #B24B25 #25B24B
tetradic
#4B25B2 #B22546 #8CB225 #25B291
square
#4B25B2 #B22546 #8CB225 #25B291
split-complementary
#4B25B2 #B29125 #46B225
monochromatic
#20104D #361A7F #4B25B2 #673DD7 #8F70E1

Accessibility & contrast

On white

9.52
#4B25B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#4B25B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B25B2
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B25B2#FFFFFF#000000##FFFFFF
##4B25B21.009.522.219.52
#FFFFFF9.521.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B6
Deuteranopia (green-blind)
#0041AF
Tritanopia (blue-blind)
#154F6B
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4b25b2;
/* rgb */ color: rgb(75, 37, 178);
/* oklch */ color: oklch(41.6% 0.203 285.8);
Tailwind
colors: {
  custom: {
    50: '#8a65ca',
    500: '#4b25b2',
    950: '#000000',
  },
}
SCSS
$custom: #4b25b2;
$custom-light: #8a65ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4b25b2",
  "rgb": {
    "r": 75,
    "g": 37,
    "b": 178
  },
  "hsl": {
    "h": 256.17,
    "s": 65.581,
    "l": 42.157
  },
  "oklch": {
    "l": 0.41567,
    "c": 0.20332,
    "h": 285.8
  },
  "luminance": 0.06033
}

Semantic roles & 50–950 ramp

primary
#4B25B2
secondary
#AFC86B
accent
#E93FBB
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4B25B2

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

Preview Lab → · Contrast checker → · Palette generator →

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