#6238CA#6238CA

#6238CA is a mid, highly saturated violet. Relative luminance 0.097; OKLCH L 48.3% C 0.210 H 289.2°. Best body text is #FFFFFF at 7.15:1 contrast (WCAG AA passes).

Color values

HEX#6238CA
RGBrgb(98, 56, 202)
HSLhsl(257, 58%, 51%)
HSVhsv(257, 72%, 79%)
CMYKcmyk(51.5%, 72.3%, 0%, 20.8%)
CIE-LABlab(37.28, 52.67, -69.17)
CIE-LCHlch(37.28, 86.94, 307.28°)
OKLaboklab(48.26% 0.0691 -0.1987)
OKLCHoklch(48.26% 0.21 289.2)
XYZxyz(17.1087, 9.6885, 56.8343)
Luminance0.0969 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6238CA #A0CA38
analogous
#3857CA #6238CA #AB38CA
triadic
#6238CA #CA6238 #38CA62
tetradic
#6238CA #CA3857 #A0CA38 #38CAAB
square
#6238CA #CA3857 #A0CA38 #38CAAB
split-complementary
#6238CA #CAAB38 #57CA38
monochromatic
#331D6B #4A299B #6238CA #8868D7 #AE99E4

Accessibility & contrast

On white

7.15
#6238CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#6238CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6238CA
7.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6238CA#FFFFFF#000000##FFFFFF
##6238CA1.007.152.947.15
#FFFFFF7.151.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BCE
Deuteranopia (green-blind)
#0054C7
Tritanopia (blue-blind)
#3C5F7E
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #6238ca;
/* rgb */ color: rgb(98, 56, 202);
/* oklch */ color: oklch(48.3% 0.210 289.2);
Tailwind
colors: {
  custom: {
    50: '#9973db',
    500: '#6238ca',
    950: '#000000',
  },
}
SCSS
$custom: #6238ca;
$custom-light: #9973db;
$custom-dark: #000000;
JSON
{
  "hex": "#6238ca",
  "rgb": {
    "r": 98,
    "g": 56,
    "b": 202
  },
  "hsl": {
    "h": 257.26,
    "s": 57.937,
    "l": 50.588
  },
  "oklch": {
    "l": 0.48263,
    "c": 0.21041,
    "h": 289.2
  },
  "luminance": 0.09689
}

Semantic roles & 50–950 ramp

primary
#6238CA
secondary
#BDCF8E
accent
#E147B5
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #6238CA

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

Preview Lab → · Contrast checker → · Palette generator →

#6238CA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva