#646A1F#646A1F

#646A1F is a mid, moderate yellow. Relative luminance 0.131; OKLCH L 50.4% C 0.097 H 113.8°. Best body text is #FFFFFF at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#646A1F
RGBrgb(100, 106, 31)
HSLhsl(65, 55%, 27%)
HSVhsv(65, 71%, 42%)
CMYKcmyk(5.7%, 0%, 70.8%, 58.4%)
CIE-LABlab(42.94, -12.94, 39.47)
CIE-LCHlch(42.94, 41.54, 108.15°)
OKLaboklab(50.36% -0.0391 0.0887)
OKLCHoklch(50.36% 0.097 113.8)
XYZxyz(10.6572, 13.1165, 3.2664)
Luminance0.1312 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#646A1F #251F6A
analogous
#6A4B1F #646A1F #3F6A1F
triadic
#646A1F #1F646A #6A1F64
tetradic
#646A1F #1F6A4B #251F6A #6A1F3F
square
#646A1F #1F6A4B #251F6A #6A1F3F
split-complementary
#646A1F #1F3F6A #4B1F6A
monochromatic
#161807 #373B11 #646A1F #91992D #BBC63D

Accessibility & contrast

On white

5.80
#646A1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#646A1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #646A1F
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##646A1F#FFFFFF#000000##FFFFFF
##646A1F1.005.803.625.80
#FFFFFF5.801.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#726514
Deuteranopia (green-blind)
#726624
Tritanopia (blue-blind)
#6B645B
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #646a1f;
/* rgb */ color: rgb(100, 106, 31);
/* oklch */ color: oklch(50.4% 0.097 113.8);
Tailwind
colors: {
  custom: {
    50: '#939460',
    500: '#646a1f',
    950: '#000000',
  },
}
SCSS
$custom: #646a1f;
$custom-light: #939460;
$custom-dark: #000000;
JSON
{
  "hex": "#646a1f",
  "rgb": {
    "r": 100,
    "g": 106,
    "b": 31
  },
  "hsl": {
    "h": 64.8,
    "s": 54.745,
    "l": 26.863
  },
  "oklch": {
    "l": 0.50364,
    "c": 0.09698,
    "h": 113.8
  },
  "luminance": 0.13116
}

Semantic roles & 50–950 ramp

primary
#646A1F
secondary
#4E479E
accent
#4ADE56
background
#F9F9F5
surface
#F1F1EA
border
#CBCBC6
text
#0D0D05
muted
#7E7E79

Preview Lab

Preview with #646A1F

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

Preview Lab → · Contrast checker → · Palette generator →

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