#7F812E#7F812E

#7F812E is a mid, moderate yellow. Relative luminance 0.204; OKLCH L 58.5% C 0.105 H 110.6°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#7F812E
RGBrgb(127, 129, 46)
HSLhsl(61, 47%, 34%)
HSVhsv(61, 64%, 51%)
CMYKcmyk(1.6%, 0%, 64.3%, 49.4%)
CIE-LABlab(52.30, -12.14, 43.28)
CIE-LCHlch(52.30, 44.95, 105.67°)
OKLaboklab(58.46% -0.0369 0.0985)
OKLCHoklch(58.46% 0.105 110.6)
XYZxyz(17.0963, 20.4102, 5.6232)
Luminance0.2041 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F812E #302E81
analogous
#815A2E #7F812E #56812E
triadic
#7F812E #2E7F81 #812E7F
tetradic
#7F812E #2E815A #302E81 #812E56
square
#7F812E #2E815A #302E81 #812E56
split-complementary
#7F812E #2E5681 #5A2E81
monochromatic
#26270E #53541E #7F812E #ABAE3E #C5C762

Accessibility & contrast

On white

4.13
#7F812E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.08
#7F812E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F812E
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F812E#FFFFFF#000000##000000
##7F812E1.004.135.085.08
#FFFFFF4.131.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7B24
Deuteranopia (green-blind)
#8C7E33
Tritanopia (blue-blind)
#887970
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #7f812e;
/* rgb */ color: rgb(127, 129, 46);
/* oklch */ color: oklch(58.5% 0.105 110.6);
Tailwind
colors: {
  custom: {
    50: '#a6a56b',
    500: '#7f812e',
    950: '#000000',
  },
}
SCSS
$custom: #7f812e;
$custom-light: #a6a56b;
$custom-dark: #000000;
JSON
{
  "hex": "#7f812e",
  "rgb": {
    "r": 127,
    "g": 129,
    "b": 46
  },
  "hsl": {
    "h": 61.446,
    "s": 47.429,
    "l": 34.314
  },
  "oklch": {
    "l": 0.58459,
    "c": 0.10517,
    "h": 110.6
  },
  "luminance": 0.2041
}

Semantic roles & 50–950 ramp

primary
#7F812E
secondary
#5F5DAE
accent
#51D754
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F07
muted
#7F7F7A

Preview Lab

Preview with #7F812E

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

Preview Lab → · Contrast checker → · Palette generator →

#7F812E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva