#4831B7#4831B7

#4831B7 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.3% C 0.198 H 282.1°. Best body text is #FFFFFF at 8.76:1 contrast (WCAG AA passes).

Color values

HEX#4831B7
RGBrgb(72, 49, 183)
HSLhsl(250, 58%, 45%)
HSVhsv(250, 73%, 72%)
CMYKcmyk(60.7%, 73.2%, 0%, 28.2%)
CIE-LABlab(31.79, 47.02, -67.12)
CIE-LCHlch(31.79, 81.95, 305.01°)
OKLaboklab(43.26% 0.0415 -0.1935)
OKLCHoklch(43.26% 0.198 282.1)
XYZxyz(12.3154, 6.9924, 45.4913)
Luminance0.0699 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4831B7 #A0B731
analogous
#315DB7 #4831B7 #8B31B7
triadic
#4831B7 #B74831 #31B748
tetradic
#4831B7 #B7315D #A0B731 #31B78B
square
#4831B7 #B7315D #A0B731 #31B78B
split-complementary
#4831B7 #B78B31 #5DB731
monochromatic
#221756 #352487 #4831B7 #6954D1 #9484DE

Accessibility & contrast

On white

8.76
#4831B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#4831B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4831B7
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4831B7#FFFFFF#000000##FFFFFF
##4831B71.008.762.408.76
#FFFFFF8.761.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FBB
Deuteranopia (green-blind)
#0046B5
Tritanopia (blue-blind)
#005671
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #4831b7;
/* rgb */ color: rgb(72, 49, 183);
/* oklch */ color: oklch(43.3% 0.198 282.1);
Tailwind
colors: {
  custom: {
    50: '#886cce',
    500: '#4831b7',
    950: '#000000',
  },
}
SCSS
$custom: #4831b7;
$custom-light: #886cce;
$custom-dark: #000000;
JSON
{
  "hex": "#4831b7",
  "rgb": {
    "r": 72,
    "g": 49,
    "b": 183
  },
  "hsl": {
    "h": 250.299,
    "s": 57.759,
    "l": 45.49
  },
  "oklch": {
    "l": 0.43256,
    "c": 0.19789,
    "h": 282.1
  },
  "luminance": 0.06993
}

Semantic roles & 50–950 ramp

primary
#4831B7
secondary
#BBC87C
accent
#E147C7
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #4831B7

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

Preview Lab → · Contrast checker → · Palette generator →

#4831B7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva