#6038AF#6038AF

#6038AF is a mid, vivid violet. Relative luminance 0.084; OKLCH L 45.8% C 0.179 H 293.5°. Best body text is #FFFFFF at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#6038AF
RGBrgb(96, 56, 175)
HSLhsl(260, 52%, 45%)
HSVhsv(260, 68%, 69%)
CMYKcmyk(45.1%, 68%, 0%, 31.4%)
CIE-LABlab(34.82, 44.83, -57.31)
CIE-LCHlch(34.82, 72.76, 308.04°)
OKLaboklab(45.77% 0.0713 -0.164)
OKLCHoklch(45.77% 0.179 293.5)
XYZxyz(13.9738, 8.4099, 41.4361)
Luminance0.0841 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6038AF #87AF38
analogous
#384CAF #6038AF #9B38AF
triadic
#6038AF #AF6038 #38AF60
tetradic
#6038AF #AF384C #87AF38 #38AF9B
square
#6038AF #AF384C #87AF38 #38AF9B
split-complementary
#6038AF #AF9B38 #4CAF38
monochromatic
#2D1A52 #472981 #6038AF #805ACA #A388D9

Accessibility & contrast

On white

7.83
#6038AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#6038AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##6038AF#FFFFFF#000000##FFFFFF
##6038AF1.007.832.687.83
#FFFFFF7.831.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.831.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6038af;
/* rgb */ color: rgb(96, 56, 175);
/* oklch */ color: oklch(45.8% 0.179 293.5);
Tailwind
colors: {
  custom: {
    50: '#9471c8',
    500: '#6038af',
    950: '#000000',
  },
}
SCSS
$custom: #6038af;
$custom-light: #9471c8;
$custom-dark: #000000;
JSON
{
  "hex": "#6038af",
  "rgb": {
    "r": 96,
    "g": 56,
    "b": 175
  },
  "hsl": {
    "h": 260.168,
    "s": 51.515,
    "l": 45.294
  },
  "oklch": {
    "l": 0.4577,
    "c": 0.1788,
    "h": 293.5
  },
  "luminance": 0.0841
}

Semantic roles & 50–950 ramp

primary
#6038AF
secondary
#ACC380
accent
#DB4DAB
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #6038AF

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

Preview Lab → · Contrast checker → · Palette generator →

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