#7F891C#7F891C

#7F891C is a mid, vivid yellow. Relative luminance 0.225; OKLCH L 60.2% C 0.127 H 115.0°. Best body text is #000000 at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#7F891C
RGBrgb(127, 137, 28)
HSLhsl(66, 66%, 32%)
HSVhsv(66, 80%, 54%)
CMYKcmyk(7.3%, 0%, 79.6%, 46.3%)
CIE-LABlab(54.54, -17.41, 52.50)
CIE-LCHlch(54.54, 55.31, 108.35°)
OKLaboklab(60.22% -0.0534 0.1148)
OKLCHoklch(60.22% 0.127 115)
XYZxyz(17.9082, 22.4875, 4.4955)
Luminance0.2249 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F891C #261C89
analogous
#895D1C #7F891C #48891C
triadic
#7F891C #1C7F89 #891C7F
tetradic
#7F891C #1C895D #261C89 #891C48
square
#7F891C #1C895D #261C89 #891C48
split-complementary
#7F891C #1C4889 #5D1C89
monochromatic
#212307 #505612 #7F891C #AEBC26 #CCD946

Accessibility & contrast

On white

3.82
#7F891C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.50
#7F891C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F891C
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F891C#FFFFFF#000000##000000
##7F891C1.003.825.505.50
#FFFFFF3.821.0021.0021.00
#0000005.5021.001.001.00
##0000005.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#938200
Deuteranopia (green-blind)
#938326
Tritanopia (blue-blind)
#888175
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #7f891c;
/* rgb */ color: rgb(127, 137, 28);
/* oklch */ color: oklch(60.2% 0.127 115.0);
Tailwind
colors: {
  custom: {
    50: '#a7ab63',
    500: '#7f891c',
    950: '#000000',
  },
}
SCSS
$custom: #7f891c;
$custom-light: #a7ab63;
$custom-dark: #000000;
JSON
{
  "hex": "#7f891c",
  "rgb": {
    "r": 127,
    "g": 137,
    "b": 28
  },
  "hsl": {
    "h": 65.505,
    "s": 66.061,
    "l": 32.353
  },
  "oklch": {
    "l": 0.60215,
    "c": 0.12659,
    "h": 115
  },
  "luminance": 0.22487
}

Semantic roles & 50–950 ramp

primary
#7F891C
secondary
#5146BB
accent
#3FE94E
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7F891C

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

Preview Lab → · Contrast checker → · Palette generator →

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