#6238DF#6238DF

#6238DF is a mid, highly saturated violet. Relative luminance 0.108; OKLCH L 50.2% C 0.234 H 285.9°. Best body text is #FFFFFF at 6.67:1 contrast (WCAG AA passes).

Color values

HEX#6238DF
RGBrgb(98, 56, 223)
HSLhsl(255, 72%, 55%)
HSVhsv(255, 75%, 87%)
CMYKcmyk(56.1%, 74.9%, 0%, 12.5%)
CIE-LABlab(39.16, 58.48, -78.19)
CIE-LCHlch(39.16, 97.64, 306.79°)
OKLaboklab(50.16% 0.0641 -0.2251)
OKLCHoklch(50.16% 0.234 285.9)
XYZxyz(19.7664, 10.7516, 70.8314)
Luminance0.1075 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6238DF #B5DF38
analogous
#3862DF #6238DF #B638DF
triadic
#6238DF #DF6238 #38DF62
tetradic
#6238DF #DF3862 #B5DF38 #38DFB6
square
#6238DF #DF3862 #B5DF38 #38DFB6
split-complementary
#6238DF #DFB638 #62DF38
monochromatic
#321687 #461EBC #6238DF #8C6DE7 #B5A1F0

Accessibility & contrast

On white

6.67
#6238DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#6238DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6238DF
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6238DF#FFFFFF#000000##FFFFFF
##6238DF1.006.673.156.67
#FFFFFF6.671.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061E4
Deuteranopia (green-blind)
#0057DC
Tritanopia (blue-blind)
#25678A
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #6238df;
/* rgb */ color: rgb(98, 56, 223);
/* oklch */ color: oklch(50.2% 0.234 285.9);
Tailwind
colors: {
  custom: {
    50: '#9c73ea',
    500: '#6238df',
    950: '#000000',
  },
}
SCSS
$custom: #6238df;
$custom-light: #9c73ea;
$custom-dark: #000000;
JSON
{
  "hex": "#6238df",
  "rgb": {
    "r": 98,
    "g": 56,
    "b": 223
  },
  "hsl": {
    "h": 255.09,
    "s": 72.294,
    "l": 54.706
  },
  "oklch": {
    "l": 0.50162,
    "c": 0.23409,
    "h": 285.9
  },
  "luminance": 0.10753
}

Semantic roles & 50–950 ramp

primary
#6238DF
secondary
#CBDD96
accent
#EF39C1
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#100816
muted
#7F7B84

Preview Lab

Preview with #6238DF

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

Preview Lab → · Contrast checker → · Palette generator →

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