#6238DA#6238DA

#6238DA is a mid, highly saturated violet. Relative luminance 0.105; OKLCH L 49.7% C 0.229 H 286.6°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#6238DA
RGBrgb(98, 56, 218)
HSLhsl(256, 69%, 54%)
HSVhsv(256, 74%, 85%)
CMYKcmyk(55%, 74.3%, 0%, 14.5%)
CIE-LABlab(38.70, 57.10, -76.08)
CIE-LCHlch(38.70, 95.12, 306.89°)
OKLaboklab(49.7% 0.0654 -0.219)
OKLCHoklch(49.7% 0.229 286.6)
XYZxyz(19.1023, 10.4859, 67.3335)
Luminance0.1049 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6238DA #B0DA38
analogous
#385FDA #6238DA #B338DA
triadic
#6238DA #DA6238 #38DA62
tetradic
#6238DA #DA385F #B0DA38 #38DAB3
square
#6238DA #DA385F #B0DA38 #38DAB3
split-complementary
#6238DA #DAB338 #5FDA38
monochromatic
#331880 #4721B3 #6238DA #8B6CE4 #B39FED

Accessibility & contrast

On white

6.78
#6238DA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#6238DA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6238DA
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6238DA#FFFFFF#000000##FFFFFF
##6238DA1.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FDF
Deuteranopia (green-blind)
#0056D7
Tritanopia (blue-blind)
#2C6587
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #6238da;
/* rgb */ color: rgb(98, 56, 218);
/* oklch */ color: oklch(49.7% 0.229 286.6);
Tailwind
colors: {
  custom: {
    50: '#9b73e7',
    500: '#6238da',
    950: '#000000',
  },
}
SCSS
$custom: #6238da;
$custom-light: #9b73e7;
$custom-dark: #000000;
JSON
{
  "hex": "#6238da",
  "rgb": {
    "r": 98,
    "g": 56,
    "b": 218
  },
  "hsl": {
    "h": 255.556,
    "s": 68.644,
    "l": 53.725
  },
  "oklch": {
    "l": 0.49701,
    "c": 0.22852,
    "h": 286.6
  },
  "luminance": 0.10487
}

Semantic roles & 50–950 ramp

primary
#6238DA
secondary
#C8DA94
accent
#EB3CBE
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#0F0816
muted
#7F7B84

Preview Lab

Preview with #6238DA

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

Preview Lab → · Contrast checker → · Palette generator →

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