#6038AA#6038AA

#6038AA is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.4% C 0.173 H 294.6°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#6038AA
RGBrgb(96, 56, 170)
HSLhsl(261, 50%, 44%)
HSVhsv(261, 67%, 67%)
CMYKcmyk(43.5%, 67.1%, 0%, 33.3%)
CIE-LABlab(34.43, 43.45, -54.96)
CIE-LCHlch(34.43, 70.06, 308.33°)
OKLaboklab(45.37% 0.072 -0.1571)
OKLCHoklch(45.37% 0.173 294.6)
XYZxyz(13.4918, 8.2171, 38.8976)
Luminance0.0822 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6038AA #82AA38
analogous
#3849AA #6038AA #9938AA
triadic
#6038AA #AA6038 #38AA60
tetradic
#6038AA #AA3849 #82AA38 #38AA99
square
#6038AA #AA3849 #82AA38 #38AA99
split-complementary
#6038AA #AA9938 #49AA38
monochromatic
#2C1A4E #46297C #6038AA #7F57C8 #A285D7

Accessibility & contrast

On white

7.94
#6038AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#6038AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##6038AA#FFFFFF#000000##FFFFFF
##6038AA1.007.942.647.94
#FFFFFF7.941.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AD
Deuteranopia (green-blind)
#004FA8
Tritanopia (blue-blind)
#4C536C
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #6038aa;
/* rgb */ color: rgb(96, 56, 170);
/* oklch */ color: oklch(45.4% 0.173 294.6);
Tailwind
colors: {
  custom: {
    50: '#9371c4',
    500: '#6038aa',
    950: '#000000',
  },
}
SCSS
$custom: #6038aa;
$custom-light: #9371c4;
$custom-dark: #000000;
JSON
{
  "hex": "#6038aa",
  "rgb": {
    "r": 96,
    "g": 56,
    "b": 170
  },
  "hsl": {
    "h": 261.053,
    "s": 50.442,
    "l": 44.314
  },
  "oklch": {
    "l": 0.45367,
    "c": 0.17279,
    "h": 294.6
  },
  "luminance": 0.08217
}

Semantic roles & 50–950 ramp

primary
#6038AA
secondary
#A9C17D
accent
#DA4EA9
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #6038AA

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

Preview Lab → · Contrast checker → · Palette generator →

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