#4E12FF#4E12FF

#4E12FF is a mid, highly saturated violet. Relative luminance 0.093; OKLCH L 48.9% C 0.293 H 277.6°. Best body text is #FFFFFF at 7.36:1 contrast (WCAG AA passes).

Color values

HEX#4E12FF
RGBrgb(78, 18, 255)
HSLhsl(255, 100%, 54%)
HSVhsv(255, 93%, 100%)
CMYKcmyk(69.4%, 92.9%, 0%, 0%)
CIE-LABlab(36.50, 77.90, -100.76)
CIE-LCHlch(36.50, 127.36, 307.71°)
OKLaboklab(48.9% 0.0386 -0.2907)
OKLCHoklch(48.9% 0.293 277.6)
XYZxyz(21.4024, 9.2703, 95.2498)
Luminance0.0927 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E12FF #C3FF12
analogous
#124CFF #4E12FF #C412FF
triadic
#4E12FF #FF4E12 #12FF4E
tetradic
#4E12FF #FF124C #C3FF12 #12FFC4
square
#4E12FF #FF124C #C3FF12 #12FFC4
split-complementary
#4E12FF #FFC412 #4CFF12
monochromatic
#260097 #3600D4 #4E12FF #7C4FFF #A98CFF

Accessibility & contrast

On white

7.36
#4E12FF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#4E12FF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E12FF
7.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E12FF#FFFFFF#000000##FFFFFF
##4E12FF1.007.362.857.36
#FFFFFF7.361.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EFF
Deuteranopia (green-blind)
#004CFB
Tritanopia (blue-blind)
#006B97
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #4e12ff;
/* rgb */ color: rgb(78, 18, 255);
/* oklch */ color: oklch(48.9% 0.293 277.6);
Tailwind
colors: {
  custom: {
    50: '#9a65ff',
    500: '#4e12ff',
    950: '#000000',
  },
}
SCSS
$custom: #4e12ff;
$custom-light: #9a65ff;
$custom-dark: #000000;
JSON
{
  "hex": "#4e12ff",
  "rgb": {
    "r": 78,
    "g": 18,
    "b": 255
  },
  "hsl": {
    "h": 255.19,
    "s": 100,
    "l": 53.529
  },
  "oklch": {
    "l": 0.48902,
    "c": 0.29329,
    "h": 277.6
  },
  "luminance": 0.09272
}

Semantic roles & 50–950 ramp

primary
#4E12FF
secondary
#CFE984
accent
#FF29C9
background
#FAF6FF
surface
#F4EBFF
border
#CEC6D7
text
#100718
muted
#7F7A86

Preview Lab

Preview with #4E12FF

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

Preview Lab → · Contrast checker → · Palette generator →

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