#6231D0#6231D0

#6231D0 is a mid, highly saturated violet. Relative luminance 0.093; OKLCH L 48.0% C 0.224 H 289.0°. Best body text is #FFFFFF at 7.32:1 contrast (WCAG AA passes).

Color values

HEX#6231D0
RGBrgb(98, 49, 208)
HSLhsl(258, 63%, 50%)
HSVhsv(258, 76%, 82%)
CMYKcmyk(52.9%, 76.4%, 0%, 18.4%)
CIE-LABlab(36.64, 57.63, -73.70)
CIE-LCHlch(36.64, 93.56, 308.03°)
OKLaboklab(47.98% 0.0731 -0.2119)
OKLCHoklch(47.98% 0.224 289)
XYZxyz(17.5172, 9.3465, 60.5433)
Luminance0.0935 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6231D0 #9FD031
analogous
#314FD0 #6231D0 #B231D0
triadic
#6231D0 #D06231 #31D062
tetradic
#6231D0 #D0314F #9FD031 #31D0B2
square
#6231D0 #D0314F #9FD031 #31D0B2
split-complementary
#6231D0 #D0B231 #4FD031
monochromatic
#33196E #4A249F #6231D0 #8863DB #AE95E7

Accessibility & contrast

On white

7.32
#6231D0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#6231D0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6231D0
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6231D0#FFFFFF#000000##FFFFFF
##6231D01.007.322.877.32
#FFFFFF7.321.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059D4
Deuteranopia (green-blind)
#0052CD
Tritanopia (blue-blind)
#375E7F
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #6231d0;
/* rgb */ color: rgb(98, 49, 208);
/* oklch */ color: oklch(48.0% 0.224 289.0);
Tailwind
colors: {
  custom: {
    50: '#9a6fe0',
    500: '#6231d0',
    950: '#000000',
  },
}
SCSS
$custom: #6231d0;
$custom-light: #9a6fe0;
$custom-dark: #000000;
JSON
{
  "hex": "#6231d0",
  "rgb": {
    "r": 98,
    "g": 49,
    "b": 208
  },
  "hsl": {
    "h": 258.491,
    "s": 62.846,
    "l": 50.392
  },
  "oklch": {
    "l": 0.47981,
    "c": 0.22417,
    "h": 289
  },
  "luminance": 0.09347
}

Semantic roles & 50–950 ramp

primary
#6231D0
secondary
#BCD28B
accent
#E642B3
background
#FAF6FD
surface
#F4ECFB
border
#CEC7D4
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #6231D0

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

Preview Lab → · Contrast checker → · Palette generator →

#6231D0 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva