#646B18#646B18

#646B18 is a mid, moderate yellow. Relative luminance 0.133; OKLCH L 50.6% C 0.103 H 114.4°. Best body text is #FFFFFF at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#646B18
RGBrgb(100, 107, 24)
HSLhsl(65, 63%, 26%)
HSVhsv(65, 78%, 42%)
CMYKcmyk(6.5%, 0%, 77.6%, 58%)
CIE-LABlab(43.20, -13.90, 42.57)
CIE-LCHlch(43.20, 44.78, 108.09°)
OKLaboklab(50.56% -0.0425 0.094)
OKLCHoklch(50.56% 0.103 114.4)
XYZxyz(10.6784, 13.2909, 2.8668)
Luminance0.1329 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#646B18 #1F186B
analogous
#6B4818 #646B18 #3A6B18
triadic
#646B18 #18646B #6B1864
tetradic
#646B18 #186B48 #1F186B #6B183A
square
#646B18 #186B48 #1F186B #6B183A
split-complementary
#646B18 #183A6B #48186B
monochromatic
#171906 #35390D #646B18 #939D23 #C1CF2E

Accessibility & contrast

On white

5.74
#646B18 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#646B18 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #646B18
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##646B18#FFFFFF#000000##FFFFFF
##646B181.005.743.665.74
#FFFFFF5.741.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#736507
Deuteranopia (green-blind)
#73671F
Tritanopia (blue-blind)
#6B645B
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #646b18;
/* rgb */ color: rgb(100, 107, 24);
/* oklch */ color: oklch(50.6% 0.103 114.4);
Tailwind
colors: {
  custom: {
    50: '#93955c',
    500: '#646b18',
    950: '#000000',
  },
}
SCSS
$custom: #646b18;
$custom-light: #93955c;
$custom-dark: #000000;
JSON
{
  "hex": "#646b18",
  "rgb": {
    "r": 100,
    "g": 107,
    "b": 24
  },
  "hsl": {
    "h": 65.06,
    "s": 63.359,
    "l": 25.686
  },
  "oklch": {
    "l": 0.50557,
    "c": 0.10313,
    "h": 114.4
  },
  "luminance": 0.13291
}

Semantic roles & 50–950 ramp

primary
#646B18
secondary
#463EA1
accent
#41E64F
background
#F9F9F5
surface
#F2F1E9
border
#CCCBC5
text
#0D0D04
muted
#7E7E79

Preview Lab

Preview with #646B18

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

Preview Lab → · Contrast checker → · Palette generator →

#646B18 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva