#6231B9#6231B9

#6231B9 is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.9% C 0.199 H 293.4°. Best body text is #FFFFFF at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#6231B9
RGBrgb(98, 49, 185)
HSLhsl(262, 58%, 46%)
HSVhsv(262, 74%, 73%)
CMYKcmyk(47%, 73.5%, 0%, 27.5%)
CIE-LABlab(34.59, 51.47, -63.61)
CIE-LCHlch(34.59, 81.83, 308.98°)
OKLaboklab(45.91% 0.079 -0.1824)
OKLCHoklch(45.91% 0.199 293.4)
XYZxyz(14.8899, 8.2956, 46.7062)
Luminance0.0830 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6231B9 #88B931
analogous
#3144B9 #6231B9 #A631B9
triadic
#6231B9 #B96231 #31B962
tetradic
#6231B9 #B93144 #88B931 #31B9A6
square
#6231B9 #B93144 #88B931 #31B9A6
split-complementary
#6231B9 #B9A631 #44B931
monochromatic
#2F1758 #482489 #6231B9 #8255D2 #A686DF

Accessibility & contrast

On white

7.90
#6231B9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#6231B9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6231B9
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6231B9#FFFFFF#000000##FFFFFF
##6231B91.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053BD
Deuteranopia (green-blind)
#004FB6
Tritanopia (blue-blind)
#485572
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #6231b9;
/* rgb */ color: rgb(98, 49, 185);
/* oklch */ color: oklch(45.9% 0.199 293.4);
Tailwind
colors: {
  custom: {
    50: '#976ecf',
    500: '#6231b9',
    950: '#000000',
  },
}
SCSS
$custom: #6231b9;
$custom-light: #976ecf;
$custom-dark: #000000;
JSON
{
  "hex": "#6231b9",
  "rgb": {
    "r": 98,
    "g": 49,
    "b": 185
  },
  "hsl": {
    "h": 261.618,
    "s": 58.12,
    "l": 45.882
  },
  "oklch": {
    "l": 0.45913,
    "c": 0.19873,
    "h": 293.4
  },
  "luminance": 0.08296
}

Semantic roles & 50–950 ramp

primary
#6231B9
secondary
#ADC87D
accent
#E146AA
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #6231B9

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

Preview Lab → · Contrast checker → · Palette generator →

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