#6038AD#6038AD

#6038AD is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.6% C 0.176 H 294.0°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#6038AD
RGBrgb(96, 56, 173)
HSLhsl(261, 51%, 45%)
HSVhsv(261, 68%, 68%)
CMYKcmyk(44.5%, 67.6%, 0%, 32.2%)
CIE-LABlab(34.66, 44.28, -56.37)
CIE-LCHlch(34.66, 71.68, 308.15°)
OKLaboklab(45.61% 0.0716 -0.1612)
OKLCHoklch(45.61% 0.176 294)
XYZxyz(13.7788, 8.3319, 40.4093)
Luminance0.0833 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6038AD #85AD38
analogous
#384AAD #6038AD #9B38AD
triadic
#6038AD #AD6038 #38AD60
tetradic
#6038AD #AD384A #85AD38 #38AD9B
square
#6038AD #AD384A #85AD38 #38AD9B
split-complementary
#6038AD #AD9B38 #4AAD38
monochromatic
#2D1A51 #46297F #6038AD #7F59C9 #A387D8

Accessibility & contrast

On white

7.88
#6038AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#6038AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6038AD
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6038AD#FFFFFF#000000##FFFFFF
##6038AD1.007.882.677.88
#FFFFFF7.881.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B1
Deuteranopia (green-blind)
#004FAB
Tritanopia (blue-blind)
#4A546E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #6038ad;
/* rgb */ color: rgb(96, 56, 173);
/* oklch */ color: oklch(45.6% 0.176 294.0);
Tailwind
colors: {
  custom: {
    50: '#9471c6',
    500: '#6038ad',
    950: '#000000',
  },
}
SCSS
$custom: #6038ad;
$custom-light: #9471c6;
$custom-dark: #000000;
JSON
{
  "hex": "#6038ad",
  "rgb": {
    "r": 96,
    "g": 56,
    "b": 173
  },
  "hsl": {
    "h": 260.513,
    "s": 51.092,
    "l": 44.902
  },
  "oklch": {
    "l": 0.45608,
    "c": 0.1764,
    "h": 294
  },
  "luminance": 0.08332
}

Semantic roles & 50–950 ramp

primary
#6038AD
secondary
#ABC27F
accent
#DB4DAA
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #6038AD

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

Preview Lab → · Contrast checker → · Palette generator →

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