#6231AF#6231AF

#6231AF is a mid, vivid violet. Relative luminance 0.079; OKLCH L 45.1% C 0.187 H 295.7°. Best body text is #FFFFFF at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#6231AF
RGBrgb(98, 49, 175)
HSLhsl(263, 56%, 44%)
HSVhsv(263, 72%, 69%)
CMYKcmyk(44%, 72%, 0%, 31.4%)
CIE-LABlab(33.75, 48.81, -59.05)
CIE-LCHlch(33.75, 76.61, 309.58°)
OKLaboklab(45.06% 0.0812 -0.169)
OKLCHoklch(45.06% 0.187 295.7)
XYZxyz(13.8711, 7.8881, 41.3409)
Luminance0.0789 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6231AF #7EAF31
analogous
#313FAF #6231AF #A131AF
triadic
#6231AF #AF6231 #31AF62
tetradic
#6231AF #AF313F #7EAF31 #31AFA1
square
#6231AF #AF313F #7EAF31 #31AFA1
split-complementary
#6231AF #AFA131 #3FAF31
monochromatic
#2C164F #47247F #6231AF #814FCE #A37FDB

Accessibility & contrast

On white

8.15
#6231AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#6231AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6231AF
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6231AF#FFFFFF#000000##FFFFFF
##6231AF1.008.152.588.15
#FFFFFF8.151.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B3
Deuteranopia (green-blind)
#004DAD
Tritanopia (blue-blind)
#4D516D
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #6231af;
/* rgb */ color: rgb(98, 49, 175);
/* oklch */ color: oklch(45.1% 0.187 295.7);
Tailwind
colors: {
  custom: {
    50: '#966dc8',
    500: '#6231af',
    950: '#000000',
  },
}
SCSS
$custom: #6231af;
$custom-light: #966dc8;
$custom-dark: #000000;
JSON
{
  "hex": "#6231af",
  "rgb": {
    "r": 98,
    "g": 49,
    "b": 175
  },
  "hsl": {
    "h": 263.333,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.45056,
    "c": 0.18746,
    "h": 295.7
  },
  "luminance": 0.07888
}

Semantic roles & 50–950 ramp

primary
#6231AF
secondary
#A6C478
accent
#E048A5
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #6231AF

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

Preview Lab → · Contrast checker → · Palette generator →

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