#6038B0#6038B0

#6038B0 is a mid, vivid violet. Relative luminance 0.085; OKLCH L 45.9% C 0.180 H 293.3°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#6038B0
RGBrgb(96, 56, 176)
HSLhsl(260, 52%, 45%)
HSVhsv(260, 68%, 69%)
CMYKcmyk(45.5%, 68.2%, 0%, 31%)
CIE-LABlab(34.90, 45.11, -57.78)
CIE-LCHlch(34.90, 73.30, 307.98°)
OKLaboklab(45.85% 0.0712 -0.1653)
OKLCHoklch(45.85% 0.18 293.3)
XYZxyz(14.0724, 8.4493, 41.9553)
Luminance0.0845 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6038B0 #88B038
analogous
#384CB0 #6038B0 #9C38B0
triadic
#6038B0 #B06038 #38B060
tetradic
#6038B0 #B0384C #88B038 #38B09C
square
#6038B0 #B0384C #88B038 #38B09C
split-complementary
#6038B0 #B09C38 #4CB038
monochromatic
#2D1A53 #472982 #6038B0 #805BCB #A489D9

Accessibility & contrast

On white

7.81
#6038B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#6038B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##6038B0#FFFFFF#000000##FFFFFF
##6038B01.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B4
Deuteranopia (green-blind)
#0050AE
Tritanopia (blue-blind)
#49556F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #6038b0;
/* rgb */ color: rgb(96, 56, 176);
/* oklch */ color: oklch(45.9% 0.180 293.3);
Tailwind
colors: {
  custom: {
    50: '#9471c8',
    500: '#6038b0',
    950: '#000000',
  },
}
SCSS
$custom: #6038b0;
$custom-light: #9471c8;
$custom-dark: #000000;
JSON
{
  "hex": "#6038b0",
  "rgb": {
    "r": 96,
    "g": 56,
    "b": 176
  },
  "hsl": {
    "h": 260,
    "s": 51.724,
    "l": 45.49
  },
  "oklch": {
    "l": 0.45852,
    "c": 0.18,
    "h": 293.3
  },
  "luminance": 0.0845
}

Semantic roles & 50–950 ramp

primary
#6038B0
secondary
#ADC480
accent
#DB4DAC
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #6038B0

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

Preview Lab → · Contrast checker → · Palette generator →

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