#646A12#646A12

#646A12 is a mid, moderate yellow. Relative luminance 0.131; OKLCH L 50.3% C 0.105 H 113.7°. Best body text is #FFFFFF at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#646A12
RGBrgb(100, 106, 18)
HSLhsl(64, 71%, 24%)
HSVhsv(64, 83%, 42%)
CMYKcmyk(5.7%, 0%, 83%, 58.4%)
CIE-LABlab(42.86, -13.63, 44.34)
CIE-LCHlch(42.86, 46.38, 107.09°)
OKLaboklab(50.27% -0.0423 0.0965)
OKLCHoklch(50.27% 0.105 113.7)
XYZxyz(10.5191, 13.0613, 2.5391)
Luminance0.1306 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#646A12 #18126A
analogous
#6A4412 #646A12 #386A12
triadic
#646A12 #12646A #6A1264
tetradic
#646A12 #126A44 #18126A #6A1238
square
#646A12 #126A44 #18126A #6A1238
split-complementary
#646A12 #12386A #44126A
monochromatic
#191A04 #333609 #646A12 #959E1B #C7D324

Accessibility & contrast

On white

5.81
#646A12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#646A12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #646A12
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##646A12#FFFFFF#000000##FFFFFF
##646A121.005.813.615.81
#FFFFFF5.811.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#736400
Deuteranopia (green-blind)
#72661A
Tritanopia (blue-blind)
#6B635A
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #646a12;
/* rgb */ color: rgb(100, 106, 18);
/* oklch */ color: oklch(50.3% 0.105 113.7);
Tailwind
colors: {
  custom: {
    50: '#939459',
    500: '#646a12',
    950: '#000000',
  },
}
SCSS
$custom: #646a12;
$custom-light: #939459;
$custom-dark: #000000;
JSON
{
  "hex": "#646a12",
  "rgb": {
    "r": 100,
    "g": 106,
    "b": 18
  },
  "hsl": {
    "h": 64.091,
    "s": 70.968,
    "l": 24.314
  },
  "oklch": {
    "l": 0.50271,
    "c": 0.1054,
    "h": 113.7
  },
  "luminance": 0.13061
}

Semantic roles & 50–950 ramp

primary
#646A12
secondary
#3E36A2
accent
#3AEE46
background
#F9F9F5
surface
#F2F1E9
border
#CCCBC5
text
#0D0D04
muted
#7E7E79

Preview Lab

Preview with #646A12

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

Preview Lab → · Contrast checker → · Palette generator →

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