#6338CD#6338CD

#6338CD is a mid, highly saturated violet. Relative luminance 0.099; OKLCH L 48.6% C 0.214 H 289.1°. Best body text is #FFFFFF at 7.05:1 contrast (WCAG AA passes).

Color values

HEX#6338CD
RGBrgb(99, 56, 205)
HSLhsl(257, 60%, 51%)
HSVhsv(257, 73%, 80%)
CMYKcmyk(51.7%, 72.7%, 0%, 19.6%)
CIE-LABlab(37.64, 53.65, -70.32)
CIE-LCHlch(37.64, 88.45, 307.34°)
OKLaboklab(48.62% 0.0699 -0.202)
OKLCHoklch(48.62% 0.214 289.1)
XYZxyz(17.5760, 9.8880, 58.7282)
Luminance0.0989 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6338CD #A2CD38
analogous
#3857CD #6338CD #AD38CD
triadic
#6338CD #CD6338 #38CD63
tetradic
#6338CD #CD3857 #A2CD38 #38CDAD
square
#6338CD #CD3857 #A2CD38 #38CDAD
split-complementary
#6338CD #CDAD38 #57CD38
monochromatic
#341C6F #4B28A0 #6338CD #8969D9 #B09AE6

Accessibility & contrast

On white

7.05
#6338CD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#6338CD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6338CD
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6338CD#FFFFFF#000000##FFFFFF
##6338CD1.007.052.987.05
#FFFFFF7.051.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CD1
Deuteranopia (green-blind)
#0055CA
Tritanopia (blue-blind)
#3C607F
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #6338cd;
/* rgb */ color: rgb(99, 56, 205);
/* oklch */ color: oklch(48.6% 0.214 289.1);
Tailwind
colors: {
  custom: {
    50: '#9a73dd',
    500: '#6338cd',
    950: '#000000',
  },
}
SCSS
$custom: #6338cd;
$custom-light: #9a73dd;
$custom-dark: #000000;
JSON
{
  "hex": "#6338cd",
  "rgb": {
    "r": 99,
    "g": 56,
    "b": 205
  },
  "hsl": {
    "h": 257.315,
    "s": 59.839,
    "l": 51.176
  },
  "oklch": {
    "l": 0.48624,
    "c": 0.2138,
    "h": 289.1
  },
  "luminance": 0.09889
}

Semantic roles & 50–950 ramp

primary
#6338CD
secondary
#BED18F
accent
#E345B5
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #6338CD

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

Preview Lab → · Contrast checker → · Palette generator →

#6338CD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva