#646217#646217

#646217 is a mid, moderate yellow. Relative luminance 0.115; OKLCH L 48.3% C 0.093 H 107.9°. Best body text is #FFFFFF at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#646217
RGBrgb(100, 98, 23)
HSLhsl(58, 63%, 24%)
HSVhsv(58, 77%, 39%)
CMYKcmyk(0%, 2%, 77%, 60.8%)
CIE-LABlab(40.42, -8.91, 40.31)
CIE-LCHlch(40.42, 41.28, 102.47°)
OKLaboklab(48.33% -0.0287 0.089)
OKLCHoklch(48.33% 0.094 107.9)
XYZxyz(9.7782, 11.5069, 2.5164)
Luminance0.1151 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#646217 #171964
analogous
#643C17 #646217 #406417
triadic
#646217 #176462 #621764
tetradic
#646217 #17643C #171964 #641740
square
#646217 #17643C #171964 #641740
split-complementary
#646217 #174064 #3C1764
monochromatic
#191806 #32310C #646217 #969322 #C8C42E

Accessibility & contrast

On white

6.36
#646217 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#646217 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #646217
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##646217#FFFFFF#000000##FFFFFF
##6462171.006.363.306.36
#FFFFFF6.361.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6B5E09
Deuteranopia (green-blind)
#6C601D
Tritanopia (blue-blind)
#6C5B54
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #646217;
/* rgb */ color: rgb(100, 98, 23);
/* oklch */ color: oklch(48.3% 0.093 107.9);
Tailwind
colors: {
  custom: {
    50: '#938e5a',
    500: '#646217',
    950: '#000000',
  },
}
SCSS
$custom: #646217;
$custom-light: #938e5a;
$custom-dark: #000000;
JSON
{
  "hex": "#646217",
  "rgb": {
    "r": 100,
    "g": 98,
    "b": 23
  },
  "hsl": {
    "h": 58.442,
    "s": 62.602,
    "l": 24.118
  },
  "oklch": {
    "l": 0.48333,
    "c": 0.0935,
    "h": 107.9
  },
  "luminance": 0.11507
}

Semantic roles & 50–950 ramp

primary
#646217
secondary
#3C3F9A
accent
#46E642
background
#F9F8F5
surface
#F2F0E9
border
#CCCBC5
text
#0D0C04
muted
#7E7D79

Preview Lab

Preview with #646217

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

Preview Lab → · Contrast checker → · Palette generator →

#646217 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva