#4B2F95#4B2F95

#4B2F95 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.1% C 0.158 H 290.0°. Best body text is #FFFFFF at 9.81:1 contrast (WCAG AA passes).

Color values

HEX#4B2F95
RGBrgb(75, 47, 149)
HSLhsl(256, 52%, 38%)
HSVhsv(256, 68%, 58%)
CMYKcmyk(49.7%, 68.5%, 0%, 41.6%)
CIE-LABlab(28.64, 38.34, -51.77)
CIE-LCHlch(28.64, 64.42, 306.52°)
OKLaboklab(40.14% 0.0541 -0.1484)
OKLCHoklch(40.14% 0.158 290)
XYZxyz(9.3414, 5.6984, 29.0356)
Luminance0.0570 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B2F95 #79952F
analogous
#2F4695 #4B2F95 #7E2F95
triadic
#4B2F95 #954B2F #2F954B
tetradic
#4B2F95 #952F46 #79952F #2F957E
square
#4B2F95 #952F46 #79952F #2F957E
split-complementary
#4B2F95 #957E2F #46952F
monochromatic
#1C1238 #342066 #4B2F95 #633FC2 #896DD1

Accessibility & contrast

On white

9.81
#4B2F95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#4B2F95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B2F95
9.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B2F95#FFFFFF#000000##FFFFFF
##4B2F951.009.812.149.81
#FFFFFF9.811.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004598
Deuteranopia (green-blind)
#004193
Tritanopia (blue-blind)
#32485E
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4b2f95;
/* rgb */ color: rgb(75, 47, 149);
/* oklch */ color: oklch(40.1% 0.158 290.0);
Tailwind
colors: {
  custom: {
    50: '#8469b5',
    500: '#4b2f95',
    950: '#000000',
  },
}
SCSS
$custom: #4b2f95;
$custom-light: #8469b5;
$custom-dark: #000000;
JSON
{
  "hex": "#4b2f95",
  "rgb": {
    "r": 75,
    "g": 47,
    "b": 149
  },
  "hsl": {
    "h": 256.471,
    "s": 52.041,
    "l": 38.431
  },
  "oklch": {
    "l": 0.40145,
    "c": 0.15793,
    "h": 290
  },
  "luminance": 0.05699
}

Semantic roles & 50–950 ramp

primary
#4B2F95
secondary
#A2B867
accent
#DB4CB4
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4B2F95

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

Preview Lab → · Contrast checker → · Palette generator →

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