#6338B2#6338B2

#6338B2 is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.3% C 0.183 H 294.3°. Best body text is #FFFFFF at 7.67:1 contrast (WCAG AA passes).

Color values

HEX#6338B2
RGBrgb(99, 56, 178)
HSLhsl(261, 52%, 46%)
HSVhsv(261, 69%, 70%)
CMYKcmyk(44.4%, 68.5%, 0%, 30.2%)
CIE-LABlab(35.39, 46.23, -58.15)
CIE-LCHlch(35.39, 74.29, 308.48°)
OKLaboklab(46.33% 0.0752 -0.1663)
OKLCHoklch(46.33% 0.183 294.3)
XYZxyz(14.5935, 8.6950, 43.0202)
Luminance0.0869 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6338B2 #87B238
analogous
#384AB2 #6338B2 #A038B2
triadic
#6338B2 #B26338 #38B263
tetradic
#6338B2 #B2384A #87B238 #38B2A0
square
#6338B2 #B2384A #87B238 #38B2A0
split-complementary
#6338B2 #B2A038 #4AB238
monochromatic
#2F1B55 #492983 #6338B2 #835CCC #A68ADA

Accessibility & contrast

On white

7.67
#6338B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#6338B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6338B2
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6338B2#FFFFFF#000000##FFFFFF
##6338B21.007.672.747.67
#FFFFFF7.671.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B6
Deuteranopia (green-blind)
#0051B0
Tritanopia (blue-blind)
#4D5670
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #6338b2;
/* rgb */ color: rgb(99, 56, 178);
/* oklch */ color: oklch(46.3% 0.183 294.3);
Tailwind
colors: {
  custom: {
    50: '#9672ca',
    500: '#6338b2',
    950: '#000000',
  },
}
SCSS
$custom: #6338b2;
$custom-light: #9672ca;
$custom-dark: #000000;
JSON
{
  "hex": "#6338b2",
  "rgb": {
    "r": 99,
    "g": 56,
    "b": 178
  },
  "hsl": {
    "h": 261.148,
    "s": 52.137,
    "l": 45.882
  },
  "oklch": {
    "l": 0.46328,
    "c": 0.18253,
    "h": 294.3
  },
  "luminance": 0.08695
}

Semantic roles & 50–950 ramp

primary
#6338B2
secondary
#ADC581
accent
#DC4CA9
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #6338B2

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

Preview Lab → · Contrast checker → · Palette generator →

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