#7D891B#7D891B

#7D891B is a mid, vivid yellow. Relative luminance 0.223; OKLCH L 60.0% C 0.128 H 116.0°. Best body text is #000000 at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#7D891B
RGBrgb(125, 137, 27)
HSLhsl(67, 67%, 32%)
HSVhsv(67, 80%, 54%)
CMYKcmyk(8.8%, 0%, 80.3%, 46.3%)
CIE-LABlab(54.38, -18.35, 52.60)
CIE-LCHlch(54.38, 55.71, 109.23°)
OKLaboklab(60.04% -0.056 0.1149)
OKLCHoklch(60.04% 0.128 116)
XYZxyz(17.6014, 22.3307, 4.4197)
Luminance0.2233 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D891B #271B89
analogous
#895E1B #7D891B #46891B
triadic
#7D891B #1B7D89 #891B7D
tetradic
#7D891B #1B895E #271B89 #891B46
square
#7D891B #1B895E #271B89 #891B46
split-complementary
#7D891B #1B4689 #5E1B89
monochromatic
#202307 #4E5611 #7D891B #ACBC25 #CADA44

Accessibility & contrast

On white

3.84
#7D891B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.47
#7D891B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D891B
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D891B#FFFFFF#000000##000000
##7D891B1.003.845.475.47
#FFFFFF3.841.0021.0021.00
#0000005.4721.001.001.00
##0000005.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#938100
Deuteranopia (green-blind)
#928325
Tritanopia (blue-blind)
#858175
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #7d891b;
/* rgb */ color: rgb(125, 137, 27);
/* oklch */ color: oklch(60.0% 0.128 116.0);
Tailwind
colors: {
  custom: {
    50: '#a6ab62',
    500: '#7d891b',
    950: '#000000',
  },
}
SCSS
$custom: #7d891b;
$custom-light: #a6ab62;
$custom-dark: #000000;
JSON
{
  "hex": "#7d891b",
  "rgb": {
    "r": 125,
    "g": 137,
    "b": 27
  },
  "hsl": {
    "h": 66.545,
    "s": 67.073,
    "l": 32.157
  },
  "oklch": {
    "l": 0.60042,
    "c": 0.1278,
    "h": 116
  },
  "luminance": 0.2233
}

Semantic roles & 50–950 ramp

primary
#7D891B
secondary
#5144BC
accent
#3EEA51
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7D891B

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

Preview Lab → · Contrast checker → · Palette generator →

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