#4E30CC#4E30CC

#4E30CC is a mid, highly saturated violet. Relative luminance 0.081; OKLCH L 45.7% C 0.223 H 281.8°. Best body text is #FFFFFF at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#4E30CC
RGBrgb(78, 48, 204)
HSLhsl(252, 62%, 49%)
HSVhsv(252, 76%, 80%)
CMYKcmyk(61.8%, 76.5%, 0%, 20%)
CIE-LABlab(34.17, 54.50, -75.51)
CIE-LCHlch(34.17, 93.12, 305.82°)
OKLaboklab(45.68% 0.0456 -0.2178)
OKLCHoklch(45.68% 0.223 281.8)
XYZxyz(15.0945, 8.0921, 57.8815)
Luminance0.0809 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E30CC #AECC30
analogous
#3060CC #4E30CC #9C30CC
triadic
#4E30CC #CC4E30 #30CC4E
tetradic
#4E30CC #CC3060 #AECC30 #30CC9C
square
#4E30CC #CC3060 #AECC30 #30CC9C
split-complementary
#4E30CC #CC9C30 #60CC30
monochromatic
#281969 #3B249A #4E30CC #7760DA #A191E5

Accessibility & contrast

On white

8.02
#4E30CC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#4E30CC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E30CC
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E30CC#FFFFFF#000000##FFFFFF
##4E30CC1.008.022.628.02
#FFFFFF8.021.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055D0
Deuteranopia (green-blind)
#004BC9
Tritanopia (blue-blind)
#005D7D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #4e30cc;
/* rgb */ color: rgb(78, 48, 204);
/* oklch */ color: oklch(45.7% 0.223 281.8);
Tailwind
colors: {
  custom: {
    50: '#8f6ddd',
    500: '#4e30cc',
    950: '#000000',
  },
}
SCSS
$custom: #4e30cc;
$custom-light: #8f6ddd;
$custom-dark: #000000;
JSON
{
  "hex": "#4e30cc",
  "rgb": {
    "r": 78,
    "g": 48,
    "b": 204
  },
  "hsl": {
    "h": 251.538,
    "s": 61.905,
    "l": 49.412
  },
  "oklch": {
    "l": 0.45678,
    "c": 0.22253,
    "h": 281.8
  },
  "luminance": 0.08093
}

Semantic roles & 50–950 ramp

primary
#4E30CC
secondary
#C2D088
accent
#E543C6
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #4E30CC

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

Preview Lab → · Contrast checker → · Palette generator →

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