#6238AD#6238AD

#6238AD is a mid, vivid violet. Relative luminance 0.084; OKLCH L 45.8% C 0.177 H 295.0°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#6238AD
RGBrgb(98, 56, 173)
HSLhsl(262, 51%, 45%)
HSVhsv(262, 68%, 68%)
CMYKcmyk(43.4%, 67.6%, 0%, 32.2%)
CIE-LABlab(34.89, 44.67, -56.00)
CIE-LCHlch(34.89, 71.64, 308.58°)
OKLaboklab(45.82% 0.0745 -0.16)
OKLCHoklch(45.82% 0.177 295)
XYZxyz(13.9920, 8.4418, 40.4193)
Luminance0.0844 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6238AD #83AD38
analogous
#3849AD #6238AD #9C38AD
triadic
#6238AD #AD6238 #38AD62
tetradic
#6238AD #AD3849 #83AD38 #38AD9C
square
#6238AD #AD3849 #83AD38 #38AD9C
split-complementary
#6238AD #AD9C38 #49AD38
monochromatic
#2E1A51 #48297F #6238AD #8159C9 #A487D8

Accessibility & contrast

On white

7.81
#6238AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#6238AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6238AD
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6238AD#FFFFFF#000000##FFFFFF
##6238AD1.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B1
Deuteranopia (green-blind)
#0050AB
Tritanopia (blue-blind)
#4E546E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #6238ad;
/* rgb */ color: rgb(98, 56, 173);
/* oklch */ color: oklch(45.8% 0.177 295.0);
Tailwind
colors: {
  custom: {
    50: '#9571c6',
    500: '#6238ad',
    950: '#000000',
  },
}
SCSS
$custom: #6238ad;
$custom-light: #9571c6;
$custom-dark: #000000;
JSON
{
  "hex": "#6238ad",
  "rgb": {
    "r": 98,
    "g": 56,
    "b": 173
  },
  "hsl": {
    "h": 261.538,
    "s": 51.092,
    "l": 44.902
  },
  "oklch": {
    "l": 0.45818,
    "c": 0.17653,
    "h": 295
  },
  "luminance": 0.08442
}

Semantic roles & 50–950 ramp

primary
#6238AD
secondary
#AAC27F
accent
#DB4DA8
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #6238AD

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

Preview Lab → · Contrast checker → · Palette generator →

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