#6238C4#6238C4

#6238C4 is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 47.7% C 0.204 H 290.2°. Best body text is #FFFFFF at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#6238C4
RGBrgb(98, 56, 196)
HSLhsl(258, 56%, 49%)
HSVhsv(258, 71%, 77%)
CMYKcmyk(50%, 71.4%, 0%, 23.1%)
CIE-LABlab(36.76, 51.01, -66.52)
CIE-LCHlch(36.76, 83.83, 307.48°)
OKLaboklab(47.74% 0.0704 -0.1909)
OKLCHoklch(47.74% 0.204 290.2)
XYZxyz(16.4121, 9.4099, 53.1654)
Luminance0.0941 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6238C4 #9AC438
analogous
#3854C4 #6238C4 #A838C4
triadic
#6238C4 #C46238 #38C462
tetradic
#6238C4 #C43854 #9AC438 #38C4A8
square
#6238C4 #C43854 #9AC438 #38C4A8
split-complementary
#6238C4 #C4A838 #54C438
monochromatic
#321D65 #4A2A94 #6238C4 #8766D3 #AC96E1

Accessibility & contrast

On white

7.29
#6238C4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#6238C4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6238C4
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6238C4#FFFFFF#000000##FFFFFF
##6238C41.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C8
Deuteranopia (green-blind)
#0053C1
Tritanopia (blue-blind)
#405D7A
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #6238c4;
/* rgb */ color: rgb(98, 56, 196);
/* oklch */ color: oklch(47.7% 0.204 290.2);
Tailwind
colors: {
  custom: {
    50: '#9872d7',
    500: '#6238c4',
    950: '#000000',
  },
}
SCSS
$custom: #6238c4;
$custom-light: #9872d7;
$custom-dark: #000000;
JSON
{
  "hex": "#6238c4",
  "rgb": {
    "r": 98,
    "g": 56,
    "b": 196
  },
  "hsl": {
    "h": 258,
    "s": 55.556,
    "l": 49.412
  },
  "oklch": {
    "l": 0.47739,
    "c": 0.20352,
    "h": 290.2
  },
  "luminance": 0.09411
}

Semantic roles & 50–950 ramp

primary
#6238C4
secondary
#B9CC8C
accent
#DF49B2
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #6238C4

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

Preview Lab → · Contrast checker → · Palette generator →

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