#6236AF#6236AF

#6236AF is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.7% C 0.181 H 294.8°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#6236AF
RGBrgb(98, 54, 175)
HSLhsl(262, 53%, 45%)
HSVhsv(262, 69%, 69%)
CMYKcmyk(44%, 69.1%, 0%, 31.4%)
CIE-LABlab(34.66, 46.27, -57.56)
CIE-LCHlch(34.66, 73.85, 308.79°)
OKLaboklab(45.71% 0.0762 -0.1646)
OKLCHoklch(45.71% 0.181 294.8)
XYZxyz(14.0920, 8.3298, 41.4145)
Luminance0.0833 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6236AF #83AF36
analogous
#3647AF #6236AF #9E36AF
triadic
#6236AF #AF6236 #36AF62
tetradic
#6236AF #AF3647 #83AF36 #36AF9E
square
#6236AF #AF3647 #83AF36 #36AF9E
split-complementary
#6236AF #AF9E36 #47AF36
monochromatic
#2E1951 #482880 #6236AF #8157CB #A486DA

Accessibility & contrast

On white

7.88
#6236AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#6236AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6236AF
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6236AF#FFFFFF#000000##FFFFFF
##6236AF1.007.882.677.88
#FFFFFF7.881.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B3
Deuteranopia (green-blind)
#0050AD
Tritanopia (blue-blind)
#4D546E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #6236af;
/* rgb */ color: rgb(98, 54, 175);
/* oklch */ color: oklch(45.7% 0.181 294.8);
Tailwind
colors: {
  custom: {
    50: '#9570c8',
    500: '#6236af',
    950: '#000000',
  },
}
SCSS
$custom: #6236af;
$custom-light: #9570c8;
$custom-dark: #000000;
JSON
{
  "hex": "#6236af",
  "rgb": {
    "r": 98,
    "g": 54,
    "b": 175
  },
  "hsl": {
    "h": 261.818,
    "s": 52.838,
    "l": 44.902
  },
  "oklch": {
    "l": 0.45706,
    "c": 0.18142,
    "h": 294.8
  },
  "luminance": 0.0833
}

Semantic roles & 50–950 ramp

primary
#6236AF
secondary
#AAC37D
accent
#DC4CA8
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #6236AF

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

Preview Lab → · Contrast checker → · Palette generator →

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