#6738EA#6738EA

#6738EA is a mid, highly saturated violet. Relative luminance 0.117; OKLCH L 51.6% C 0.246 H 286.2°. Best body text is #FFFFFF at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#6738EA
RGBrgb(103, 56, 234)
HSLhsl(256, 81%, 57%)
HSVhsv(256, 76%, 92%)
CMYKcmyk(56%, 76.1%, 0%, 8.2%)
CIE-LABlab(40.66, 62.11, -81.97)
CIE-LCHlch(40.66, 102.85, 307.15°)
OKLaboklab(51.63% 0.0684 -0.236)
OKLCHoklch(51.63% 0.246 286.2)
XYZxyz(21.8545, 11.6512, 78.9233)
Luminance0.1165 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6738EA #BBEA38
analogous
#3862EA #6738EA #C038EA
triadic
#6738EA #EA6738 #38EA67
tetradic
#6738EA #EA3862 #BBEA38 #38EAC0
square
#6738EA #EA3862 #BBEA38 #38EAC0
split-complementary
#6738EA #EAC038 #62EA38
monochromatic
#341098 #4716CF #6738EA #916FF0 #BCA7F6

Accessibility & contrast

On white

6.31
#6738EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#6738EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6738EA
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6738EA#FFFFFF#000000##FFFFFF
##6738EA1.006.313.336.31
#FFFFFF6.311.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064EF
Deuteranopia (green-blind)
#005BE7
Tritanopia (blue-blind)
#276B90
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #6738ea;
/* rgb */ color: rgb(103, 56, 234);
/* oklch */ color: oklch(51.6% 0.246 286.2);
Tailwind
colors: {
  custom: {
    50: '#a074f2',
    500: '#6738ea',
    950: '#000000',
  },
}
SCSS
$custom: #6738ea;
$custom-light: #a074f2;
$custom-dark: #000000;
JSON
{
  "hex": "#6738ea",
  "rgb": {
    "r": 103,
    "g": 56,
    "b": 234
  },
  "hsl": {
    "h": 255.843,
    "s": 80.909,
    "l": 56.863
  },
  "oklch": {
    "l": 0.51632,
    "c": 0.24575,
    "h": 286.2
  },
  "luminance": 0.11652
}

Semantic roles & 50–950 ramp

primary
#6738EA
secondary
#D0E39B
accent
#F730C3
background
#FAF7FF
surface
#F4EDFE
border
#CEC8D6
text
#100917
muted
#7F7B85

Preview Lab

Preview with #6738EA

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

Preview Lab → · Contrast checker → · Palette generator →

#6738EA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva