#6338F2#6338F2

#6338F2 is a mid, highly saturated violet. Relative luminance 0.119; OKLCH L 52.0% C 0.255 H 283.7°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#6338F2
RGBrgb(99, 56, 242)
HSLhsl(254, 88%, 58%)
HSVhsv(254, 77%, 95%)
CMYKcmyk(59.1%, 76.9%, 0%, 5.1%)
CIE-LABlab(41.04, 63.81, -85.87)
CIE-LCHlch(41.04, 106.99, 306.61°)
OKLaboklab(52.04% 0.0605 -0.2475)
OKLCHoklch(52.04% 0.255 283.7)
XYZxyz(22.5818, 11.8903, 85.0923)
Luminance0.1189 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6338F2 #C7F238
analogous
#386AF2 #6338F2 #C038F2
triadic
#6338F2 #F26338 #38F263
tetradic
#6338F2 #F2386A #C7F238 #38F2C0
square
#6338F2 #F2386A #C7F238 #38F2C0
split-complementary
#6338F2 #F2C038 #6AF238
monochromatic
#2E0BA5 #3F0FDE #6338F2 #9071F6 #BDABFA

Accessibility & contrast

On white

6.22
#6338F2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#6338F2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6338F2
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6338F2#FFFFFF#000000##FFFFFF
##6338F21.006.223.386.22
#FFFFFF6.221.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066F7
Deuteranopia (green-blind)
#005BEF
Tritanopia (blue-blind)
#006F94
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #6338f2;
/* rgb */ color: rgb(99, 56, 242);
/* oklch */ color: oklch(52.0% 0.255 283.7);
Tailwind
colors: {
  custom: {
    50: '#9f74f8',
    500: '#6338f2',
    950: '#000000',
  },
}
SCSS
$custom: #6338f2;
$custom-light: #9f74f8;
$custom-dark: #000000;
JSON
{
  "hex": "#6338f2",
  "rgb": {
    "r": 99,
    "g": 56,
    "b": 242
  },
  "hsl": {
    "h": 253.871,
    "s": 87.736,
    "l": 58.431
  },
  "oklch": {
    "l": 0.52039,
    "c": 0.25483,
    "h": 283.7
  },
  "luminance": 0.11892
}

Semantic roles & 50–950 ramp

primary
#6338F2
secondary
#D7E89E
accent
#FE2ACD
background
#FAF7FF
surface
#F4EDFF
border
#CEC8D7
text
#100917
muted
#7F7B85

Preview Lab

Preview with #6338F2

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

Preview Lab → · Contrast checker → · Palette generator →

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