#818F2B#818F2B

#818F2B is a mid, vivid yellow. Relative luminance 0.245; OKLCH L 61.9% C 0.124 H 117.0°. Best body text is #000000 at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#818F2B
RGBrgb(129, 143, 43)
HSLhsl(68, 54%, 36%)
HSVhsv(68, 70%, 56%)
CMYKcmyk(9.8%, 0%, 69.9%, 43.9%)
CIE-LABlab(56.57, -18.86, 49.04)
CIE-LCHlch(56.57, 52.54, 111.04°)
OKLaboklab(61.92% -0.0562 0.1101)
OKLCHoklch(61.92% 0.124 117)
XYZxyz(19.3122, 24.4867, 5.9941)
Luminance0.2449 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#818F2B #392B8F
analogous
#8F6B2B #818F2B #4F8F2B
triadic
#818F2B #2B818F #8F2B81
tetradic
#818F2B #2B8F6B #392B8F #8F2B4F
square
#818F2B #2B8F6B #392B8F #8F2B4F
split-complementary
#818F2B #2B4F8F #6B2B8F
monochromatic
#2C310F #57601D #818F2B #ABBE39 #C1D064

Accessibility & contrast

On white

3.56
#818F2B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.90
#818F2B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #818F2B
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##818F2B#FFFFFF#000000##000000
##818F2B1.003.565.905.90
#FFFFFF3.561.0021.0021.00
#0000005.9021.001.001.00
##0000005.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#99871C
Deuteranopia (green-blind)
#978833
Tritanopia (blue-blind)
#89877B
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #818f2b;
/* rgb */ color: rgb(129, 143, 43);
/* oklch */ color: oklch(61.9% 0.124 117.0);
Tailwind
colors: {
  custom: {
    50: '#a8af6b',
    500: '#818f2b',
    950: '#000000',
  },
}
SCSS
$custom: #818f2b;
$custom-light: #a8af6b;
$custom-dark: #000000;
JSON
{
  "hex": "#818f2b",
  "rgb": {
    "r": 129,
    "g": 143,
    "b": 43
  },
  "hsl": {
    "h": 68.4,
    "s": 53.763,
    "l": 36.471
  },
  "oklch": {
    "l": 0.61915,
    "c": 0.1236,
    "h": 117
  },
  "luminance": 0.24486
}

Semantic roles & 50–950 ramp

primary
#818F2B
secondary
#6B5FB7
accent
#4BDD5F
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101007
muted
#7F7F7A

Preview Lab

Preview with #818F2B

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

Preview Lab → · Contrast checker → · Palette generator →

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