#6238EA#6238EA

#6238EA is a mid, highly saturated violet. Relative luminance 0.114; OKLCH L 51.2% C 0.246 H 284.4°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#6238EA
RGBrgb(98, 56, 234)
HSLhsl(254, 81%, 57%)
HSVhsv(254, 76%, 92%)
CMYKcmyk(58.1%, 76.1%, 0%, 8.2%)
CIE-LABlab(40.19, 61.51, -82.76)
CIE-LCHlch(40.19, 103.12, 306.62°)
OKLaboklab(51.19% 0.0612 -0.2385)
OKLCHoklch(51.19% 0.246 284.4)
XYZxyz(21.2979, 11.3642, 78.8972)
Luminance0.1137 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6238EA #C0EA38
analogous
#3867EA #6238EA #BB38EA
triadic
#6238EA #EA6238 #38EA62
tetradic
#6238EA #EA3867 #C0EA38 #38EABB
square
#6238EA #EA3867 #C0EA38 #38EABB
split-complementary
#6238EA #EABB38 #67EA38
monochromatic
#301098 #4216CF #6238EA #8E6FF0 #B9A7F6

Accessibility & contrast

On white

6.42
#6238EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#6238EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6238EA
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6238EA#FFFFFF#000000##FFFFFF
##6238EA1.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064EF
Deuteranopia (green-blind)
#0059E7
Tritanopia (blue-blind)
#0B6C90
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #6238ea;
/* rgb */ color: rgb(98, 56, 234);
/* oklch */ color: oklch(51.2% 0.246 284.4);
Tailwind
colors: {
  custom: {
    50: '#9d74f2',
    500: '#6238ea',
    950: '#000000',
  },
}
SCSS
$custom: #6238ea;
$custom-light: #9d74f2;
$custom-dark: #000000;
JSON
{
  "hex": "#6238ea",
  "rgb": {
    "r": 98,
    "g": 56,
    "b": 234
  },
  "hsl": {
    "h": 254.157,
    "s": 80.909,
    "l": 56.863
  },
  "oklch": {
    "l": 0.51192,
    "c": 0.24623,
    "h": 284.4
  },
  "luminance": 0.11366
}

Semantic roles & 50–950 ramp

primary
#6238EA
secondary
#D2E39B
accent
#F730C8
background
#FAF7FF
surface
#F4EDFE
border
#CEC8D6
text
#100917
muted
#7F7B85

Preview Lab

Preview with #6238EA

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

Preview Lab → · Contrast checker → · Palette generator →

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