#6B238F#6B238F

#6B238F is a dark, vivid purple. Relative luminance 0.063; OKLCH L 42.0% C 0.172 H 311.6°. Best body text is #FFFFFF at 9.28:1 contrast (WCAG AA passes).

Color values

HEX#6B238F
RGBrgb(107, 35, 143)
HSLhsl(280, 61%, 35%)
HSVhsv(280, 76%, 56%)
CMYKcmyk(25.2%, 75.5%, 0%, 43.9%)
CIE-LABlab(30.18, 49.09, -45.38)
CIE-LCHlch(30.18, 66.85, 317.25°)
OKLaboklab(42% 0.114 -0.1284)
OKLCHoklch(42% 0.172 311.6)
XYZxyz(11.6214, 6.3113, 26.5873)
Luminance0.0631 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B238F #478F23
analogous
#35238F #6B238F #8F237D
triadic
#6B238F #8F6B23 #238F6B
tetradic
#6B238F #8F3523 #478F23 #237D8F
square
#6B238F #8F3523 #478F23 #237D8F
split-complementary
#6B238F #7D8F23 #238F35
monochromatic
#210B2D #46175E #6B238F #902FC0 #AB57D6

Accessibility & contrast

On white

9.28
#6B238F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#6B238F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B238F
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B238F#FFFFFF#000000##FFFFFF
##6B238F1.009.282.269.28
#FFFFFF9.281.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004492
Deuteranopia (green-blind)
#12488D
Tritanopia (blue-blind)
#663C57
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #6b238f;
/* rgb */ color: rgb(107, 35, 143);
/* oklch */ color: oklch(42.0% 0.172 311.6);
Tailwind
colors: {
  custom: {
    50: '#9966b0',
    500: '#6b238f',
    950: '#000000',
  },
}
SCSS
$custom: #6b238f;
$custom-light: #9966b0;
$custom-dark: #000000;
JSON
{
  "hex": "#6b238f",
  "rgb": {
    "r": 107,
    "g": 35,
    "b": 143
  },
  "hsl": {
    "h": 280,
    "s": 60.674,
    "l": 34.902
  },
  "oklch": {
    "l": 0.42004,
    "c": 0.17171,
    "h": 311.6
  },
  "luminance": 0.06311
}

Semantic roles & 50–950 ramp

primary
#6B238F
secondary
#76BA54
accent
#E44479
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #6B238F

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

Preview Lab → · Contrast checker → · Palette generator →

#6B238F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva