#818B1F#818B1F

#818B1F is a mid, vivid yellow. Relative luminance 0.232; OKLCH L 60.9% C 0.127 H 114.9°. Best body text is #000000 at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#818B1F
RGBrgb(129, 139, 31)
HSLhsl(66, 64%, 33%)
HSVhsv(66, 78%, 55%)
CMYKcmyk(7.2%, 0%, 77.7%, 45.5%)
CIE-LABlab(55.31, -17.43, 52.28)
CIE-LCHlch(55.31, 55.11, 108.44°)
OKLaboklab(60.88% -0.0533 0.1148)
OKLCHoklch(60.88% 0.127 114.9)
XYZxyz(18.5337, 23.2316, 4.8039)
Luminance0.2323 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#818B1F #291F8B
analogous
#8B5F1F #818B1F #4B8B1F
triadic
#818B1F #1F818B #8B1F81
tetradic
#818B1F #1F8B5F #291F8B #8B1F4B
square
#818B1F #1F8B5F #291F8B #8B1F4B
split-complementary
#818B1F #1F4B8B #5F1F8B
monochromatic
#242709 #535914 #818B1F #AFBD2A #CBD74D

Accessibility & contrast

On white

3.72
#818B1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.65
#818B1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #818B1F
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##818B1F#FFFFFF#000000##000000
##818B1F1.003.725.655.65
#FFFFFF3.721.0021.0021.00
#0000005.6521.001.001.00
##0000005.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#958404
Deuteranopia (green-blind)
#958529
Tritanopia (blue-blind)
#8A8377
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #818b1f;
/* rgb */ color: rgb(129, 139, 31);
/* oklch */ color: oklch(60.9% 0.127 114.9);
Tailwind
colors: {
  custom: {
    50: '#a9ac64',
    500: '#818b1f',
    950: '#000000',
  },
}
SCSS
$custom: #818b1f;
$custom-light: #a9ac64;
$custom-dark: #000000;
JSON
{
  "hex": "#818b1f",
  "rgb": {
    "r": 129,
    "g": 139,
    "b": 31
  },
  "hsl": {
    "h": 65.556,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.60878,
    "c": 0.12657,
    "h": 114.9
  },
  "luminance": 0.23231
}

Semantic roles & 50–950 ramp

primary
#818B1F
secondary
#564CBA
accent
#41E751
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #818B1F

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

Preview Lab → · Contrast checker → · Palette generator →

#818B1F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva