#6038B4#6038B4

#6038B4 is a mid, vivid violet. Relative luminance 0.086; OKLCH L 46.2% C 0.185 H 292.4°. Best body text is #FFFFFF at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#6038B4
RGBrgb(96, 56, 180)
HSLhsl(259, 53%, 46%)
HSVhsv(259, 69%, 71%)
CMYKcmyk(46.7%, 68.9%, 0%, 29.4%)
CIE-LABlab(35.22, 46.22, -59.63)
CIE-LCHlch(35.22, 75.44, 307.78°)
OKLaboklab(46.18% 0.0705 -0.1708)
OKLCHoklch(46.18% 0.185 292.4)
XYZxyz(14.4740, 8.6100, 44.0704)
Luminance0.0861 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6038B4 #8CB438
analogous
#384EB4 #6038B4 #9E38B4
triadic
#6038B4 #B46038 #38B460
tetradic
#6038B4 #B4384E #8CB438 #38B49E
square
#6038B4 #B4384E #8CB438 #38B49E
split-complementary
#6038B4 #B49E38 #4EB438
monochromatic
#2E1B57 #472985 #6038B4 #815DCD #A58BDB

Accessibility & contrast

On white

7.71
#6038B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#6038B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6038B4
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6038B4#FFFFFF#000000##FFFFFF
##6038B41.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B8
Deuteranopia (green-blind)
#0050B2
Tritanopia (blue-blind)
#475771
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #6038b4;
/* rgb */ color: rgb(96, 56, 180);
/* oklch */ color: oklch(46.2% 0.185 292.4);
Tailwind
colors: {
  custom: {
    50: '#9472cb',
    500: '#6038b4',
    950: '#000000',
  },
}
SCSS
$custom: #6038b4;
$custom-light: #9472cb;
$custom-dark: #000000;
JSON
{
  "hex": "#6038b4",
  "rgb": {
    "r": 96,
    "g": 56,
    "b": 180
  },
  "hsl": {
    "h": 259.355,
    "s": 52.542,
    "l": 46.275
  },
  "oklch": {
    "l": 0.46182,
    "c": 0.18477,
    "h": 292.4
  },
  "luminance": 0.0861
}

Semantic roles & 50–950 ramp

primary
#6038B4
secondary
#B0C582
accent
#DC4CAD
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #6038B4

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

Preview Lab → · Contrast checker → · Palette generator →

#6038B4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva