#6338C2#6338C2

#6338C2 is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 47.7% C 0.201 H 291.0°. Best body text is #FFFFFF at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#6338C2
RGBrgb(99, 56, 194)
HSLhsl(259, 55%, 49%)
HSVhsv(259, 71%, 76%)
CMYKcmyk(49%, 71.1%, 0%, 23.9%)
CIE-LABlab(36.70, 50.62, -65.45)
CIE-LCHlch(36.70, 82.74, 307.72°)
OKLaboklab(47.67% 0.0723 -0.1878)
OKLCHoklch(47.67% 0.201 291)
XYZxyz(16.2946, 9.3754, 51.9795)
Luminance0.0938 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6338C2 #97C238
analogous
#3852C2 #6338C2 #A838C2
triadic
#6338C2 #C26338 #38C263
tetradic
#6338C2 #C23852 #97C238 #38C2A8
square
#6338C2 #C23852 #97C238 #38C2A8
split-complementary
#6338C2 #C2A838 #52C238
monochromatic
#331D63 #4B2A93 #6338C2 #8765D2 #AC94E0

Accessibility & contrast

On white

7.30
#6338C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#6338C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6338C2
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6338C2#FFFFFF#000000##FFFFFF
##6338C21.007.302.887.30
#FFFFFF7.301.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C6
Deuteranopia (green-blind)
#0053BF
Tritanopia (blue-blind)
#445C79
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #6338c2;
/* rgb */ color: rgb(99, 56, 194);
/* oklch */ color: oklch(47.7% 0.201 291.0);
Tailwind
colors: {
  custom: {
    50: '#9872d5',
    500: '#6338c2',
    950: '#000000',
  },
}
SCSS
$custom: #6338c2;
$custom-light: #9872d5;
$custom-dark: #000000;
JSON
{
  "hex": "#6338c2",
  "rgb": {
    "r": 99,
    "g": 56,
    "b": 194
  },
  "hsl": {
    "h": 258.696,
    "s": 55.2,
    "l": 49.02
  },
  "oklch": {
    "l": 0.47666,
    "c": 0.20121,
    "h": 291
  },
  "luminance": 0.09376
}

Semantic roles & 50–950 ramp

primary
#6338C2
secondary
#B7CB8A
accent
#DF49B0
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0F0814
muted
#7E7B83

Preview Lab

Preview with #6338C2

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

Preview Lab → · Contrast checker → · Palette generator →

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