#646C1F#646C1F

#646C1F is a mid, moderate yellow. Relative luminance 0.135; OKLCH L 50.9% C 0.099 H 115.1°. Best body text is #FFFFFF at 5.67:1 contrast (WCAG AA passes).

Color values

HEX#646C1F
RGBrgb(100, 108, 31)
HSLhsl(66, 55%, 27%)
HSVhsv(66, 71%, 42%)
CMYKcmyk(7.4%, 0%, 71.3%, 57.6%)
CIE-LABlab(43.56, -14.04, 40.10)
CIE-LCHlch(43.56, 42.49, 109.30°)
OKLaboklab(50.86% -0.0422 0.0901)
OKLCHoklch(50.86% 0.099 115.1)
XYZxyz(10.8657, 13.5336, 3.3359)
Luminance0.1353 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#646C1F #271F6C
analogous
#6C4E1F #646C1F #3D6C1F
triadic
#646C1F #1F646C #6C1F64
tetradic
#646C1F #1F6C4E #271F6C #6C1F3D
square
#646C1F #1F6C4E #271F6C #6C1F3D
split-complementary
#646C1F #1F3D6C #4E1F6C
monochromatic
#161807 #383C11 #646C1F #909C2D #B9C83E

Accessibility & contrast

On white

5.67
#646C1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#646C1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #646C1F
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##646C1F#FFFFFF#000000##FFFFFF
##646C1F1.005.673.715.67
#FFFFFF5.671.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#746613
Deuteranopia (green-blind)
#736825
Tritanopia (blue-blind)
#6B665D
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #646c1f;
/* rgb */ color: rgb(100, 108, 31);
/* oklch */ color: oklch(50.9% 0.099 115.1);
Tailwind
colors: {
  custom: {
    50: '#939660',
    500: '#646c1f',
    950: '#000000',
  },
}
SCSS
$custom: #646c1f;
$custom-light: #939660;
$custom-dark: #000000;
JSON
{
  "hex": "#646c1f",
  "rgb": {
    "r": 100,
    "g": 108,
    "b": 31
  },
  "hsl": {
    "h": 66.234,
    "s": 55.396,
    "l": 27.255
  },
  "oklch": {
    "l": 0.50859,
    "c": 0.09945,
    "h": 115.1
  },
  "luminance": 0.13533
}

Semantic roles & 50–950 ramp

primary
#646C1F
secondary
#5047A0
accent
#49DF59
background
#F9F9F5
surface
#F2F1EA
border
#CCCBC6
text
#0D0D05
muted
#7E7E79

Preview Lab

Preview with #646C1F

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

Preview Lab → · Contrast checker → · Palette generator →

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