#6238CE#6238CE

#6238CE is a mid, highly saturated violet. Relative luminance 0.099; OKLCH L 48.6% C 0.215 H 288.5°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#6238CE
RGBrgb(98, 56, 206)
HSLhsl(257, 60%, 51%)
HSVhsv(257, 73%, 81%)
CMYKcmyk(52.4%, 72.8%, 0%, 19.2%)
CIE-LABlab(37.63, 53.78, -70.92)
CIE-LCHlch(37.63, 89.01, 307.17°)
OKLaboklab(48.62% 0.0682 -0.2039)
OKLCHoklch(48.62% 0.215 288.5)
XYZxyz(17.5885, 9.8804, 59.3609)
Luminance0.0988 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6238CE #A4CE38
analogous
#3859CE #6238CE #AD38CE
triadic
#6238CE #CE6238 #38CE62
tetradic
#6238CE #CE3859 #A4CE38 #38CEAD
square
#6238CE #CE3859 #A4CE38 #38CEAD
split-complementary
#6238CE #CEAD38 #59CE38
monochromatic
#331C70 #4A28A1 #6238CE #8969DA #AF9AE6

Accessibility & contrast

On white

7.06
#6238CE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#6238CE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6238CE
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6238CE#FFFFFF#000000##FFFFFF
##6238CE1.007.062.987.06
#FFFFFF7.061.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CD2
Deuteranopia (green-blind)
#0055CB
Tritanopia (blue-blind)
#386180
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #6238ce;
/* rgb */ color: rgb(98, 56, 206);
/* oklch */ color: oklch(48.6% 0.215 288.5);
Tailwind
colors: {
  custom: {
    50: '#9973de',
    500: '#6238ce',
    950: '#000000',
  },
}
SCSS
$custom: #6238ce;
$custom-light: #9973de;
$custom-dark: #000000;
JSON
{
  "hex": "#6238ce",
  "rgb": {
    "r": 98,
    "g": 56,
    "b": 206
  },
  "hsl": {
    "h": 256.8,
    "s": 60.484,
    "l": 51.373
  },
  "oklch": {
    "l": 0.48617,
    "c": 0.21498,
    "h": 288.5
  },
  "luminance": 0.09881
}

Semantic roles & 50–950 ramp

primary
#6238CE
secondary
#BFD290
accent
#E444B7
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #6238CE

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

Preview Lab → · Contrast checker → · Palette generator →

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