#6231B2#6231B2

#6231B2 is a mid, vivid violet. Relative luminance 0.080; OKLCH L 45.3% C 0.191 H 295.0°. Best body text is #FFFFFF at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#6231B2
RGBrgb(98, 49, 178)
HSLhsl(263, 57%, 45%)
HSVhsv(263, 72%, 70%)
CMYKcmyk(44.9%, 72.5%, 0%, 30.2%)
CIE-LABlab(34.00, 49.61, -60.43)
CIE-LCHlch(34.00, 78.18, 309.38°)
OKLaboklab(45.31% 0.0805 -0.173)
OKLCHoklch(45.31% 0.191 295)
XYZxyz(14.1690, 8.0073, 42.9099)
Luminance0.0801 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6231B2 #81B231
analogous
#3140B2 #6231B2 #A331B2
triadic
#6231B2 #B26231 #31B262
tetradic
#6231B2 #B23140 #81B231 #31B2A3
square
#6231B2 #B23140 #81B231 #31B2A3
split-complementary
#6231B2 #B2A331 #40B231
monochromatic
#2D1752 #482482 #6231B2 #8151CF #A481DC

Accessibility & contrast

On white

8.07
#6231B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#6231B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6231B2
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6231B2#FFFFFF#000000##FFFFFF
##6231B21.008.072.608.07
#FFFFFF8.071.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B6
Deuteranopia (green-blind)
#004EAF
Tritanopia (blue-blind)
#4C526E
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #6231b2;
/* rgb */ color: rgb(98, 49, 178);
/* oklch */ color: oklch(45.3% 0.191 295.0);
Tailwind
colors: {
  custom: {
    50: '#966eca',
    500: '#6231b2',
    950: '#000000',
  },
}
SCSS
$custom: #6231b2;
$custom-light: #966eca;
$custom-dark: #000000;
JSON
{
  "hex": "#6231b2",
  "rgb": {
    "r": 98,
    "g": 49,
    "b": 178
  },
  "hsl": {
    "h": 262.791,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.4531,
    "c": 0.19086,
    "h": 295
  },
  "luminance": 0.08008
}

Semantic roles & 50–950 ramp

primary
#6231B2
secondary
#A9C579
accent
#E048A6
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #6231B2

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

Preview Lab → · Contrast checker → · Palette generator →

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