#646C12#646C12

#646C12 is a mid, moderate yellow. Relative luminance 0.135; OKLCH L 50.8% C 0.108 H 114.9°. Best body text is #FFFFFF at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#646C12
RGBrgb(100, 108, 18)
HSLhsl(65, 71%, 25%)
HSVhsv(65, 83%, 42%)
CMYKcmyk(7.4%, 0%, 83.3%, 57.6%)
CIE-LABlab(43.48, -14.72, 44.89)
CIE-LCHlch(43.48, 47.24, 108.16°)
OKLaboklab(50.77% -0.0453 0.0977)
OKLCHoklch(50.77% 0.108 114.9)
XYZxyz(10.7276, 13.4783, 2.6086)
Luminance0.1348 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#646C12 #1A126C
analogous
#6C4712 #646C12 #376C12
triadic
#646C12 #12646C #6C1264
tetradic
#646C12 #126C47 #1A126C #6C1237
square
#646C12 #126C47 #1A126C #6C1237
split-complementary
#646C12 #12376C #47126C
monochromatic
#181A04 #333809 #646C12 #95A01B #C5D523

Accessibility & contrast

On white

5.68
#646C12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#646C12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #646C12
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##646C12#FFFFFF#000000##FFFFFF
##646C121.005.683.705.68
#FFFFFF5.681.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#746600
Deuteranopia (green-blind)
#74671B
Tritanopia (blue-blind)
#6B655C
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #646c12;
/* rgb */ color: rgb(100, 108, 18);
/* oklch */ color: oklch(50.8% 0.108 114.9);
Tailwind
colors: {
  custom: {
    50: '#939659',
    500: '#646c12',
    950: '#000000',
  },
}
SCSS
$custom: #646c12;
$custom-light: #939659;
$custom-dark: #000000;
JSON
{
  "hex": "#646c12",
  "rgb": {
    "r": 100,
    "g": 108,
    "b": 18
  },
  "hsl": {
    "h": 65.333,
    "s": 71.429,
    "l": 24.706
  },
  "oklch": {
    "l": 0.50768,
    "c": 0.10772,
    "h": 114.9
  },
  "luminance": 0.13478
}

Semantic roles & 50–950 ramp

primary
#646C12
secondary
#4036A3
accent
#3AEE4A
background
#F9F9F5
surface
#F2F1E9
border
#CCCBC5
text
#0D0D04
muted
#7E7E79

Preview Lab

Preview with #646C12

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

Preview Lab → · Contrast checker → · Palette generator →

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