#7F892A#7F892A

#7F892A is a mid, moderate yellow. Relative luminance 0.226; OKLCH L 60.3% C 0.118 H 115.2°. Best body text is #000000 at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#7F892A
RGBrgb(127, 137, 42)
HSLhsl(66, 53%, 35%)
HSVhsv(66, 69%, 54%)
CMYKcmyk(7.3%, 0%, 69.3%, 46.3%)
CIE-LABlab(54.63, -16.68, 47.43)
CIE-LCHlch(54.63, 50.28, 109.38°)
OKLaboklab(60.31% -0.0501 0.1066)
OKLCHoklch(60.31% 0.118 115.2)
XYZxyz(18.1164, 22.5708, 5.5923)
Luminance0.2257 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F892A #342A89
analogous
#89642A #7F892A #4F892A
triadic
#7F892A #2A7F89 #892A7F
tetradic
#7F892A #2A8964 #342A89 #892A4F
square
#7F892A #2A8964 #342A89 #892A4F
split-complementary
#7F892A #2A4F89 #642A89
monochromatic
#282B0D #545A1C #7F892A #AAB838 #C2CE5F

Accessibility & contrast

On white

3.81
#7F892A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.51
#7F892A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F892A
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F892A#FFFFFF#000000##000000
##7F892A1.003.815.515.51
#FFFFFF3.811.0021.0021.00
#0000005.5121.001.001.00
##0000005.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#93821C
Deuteranopia (green-blind)
#928331
Tritanopia (blue-blind)
#878176
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7f892a;
/* rgb */ color: rgb(127, 137, 42);
/* oklch */ color: oklch(60.3% 0.118 115.2);
Tailwind
colors: {
  custom: {
    50: '#a7ab69',
    500: '#7f892a',
    950: '#000000',
  },
}
SCSS
$custom: #7f892a;
$custom-light: #a7ab69;
$custom-dark: #000000;
JSON
{
  "hex": "#7f892a",
  "rgb": {
    "r": 127,
    "g": 137,
    "b": 42
  },
  "hsl": {
    "h": 66.316,
    "s": 53.073,
    "l": 35.098
  },
  "oklch": {
    "l": 0.60313,
    "c": 0.11776,
    "h": 115.2
  },
  "luminance": 0.22571
}

Semantic roles & 50–950 ramp

primary
#7F892A
secondary
#645BB4
accent
#4BDC5B
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101007
muted
#7F7F7A

Preview Lab

Preview with #7F892A

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

Preview Lab → · Contrast checker → · Palette generator →

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