#7D891F#7D891F

#7D891F is a mid, vivid yellow. Relative luminance 0.224; OKLCH L 60.1% C 0.126 H 116.1°. Best body text is #000000 at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#7D891F
RGBrgb(125, 137, 31)
HSLhsl(67, 63%, 33%)
HSVhsv(67, 77%, 54%)
CMYKcmyk(8.8%, 0%, 77.4%, 46.3%)
CIE-LABlab(54.40, -18.17, 51.31)
CIE-LCHlch(54.40, 54.44, 109.50°)
OKLaboklab(60.07% -0.0552 0.1129)
OKLCHoklch(60.07% 0.126 116.1)
XYZxyz(17.6509, 22.3505, 4.6803)
Luminance0.2235 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D891F #2B1F89
analogous
#89601F #7D891F #48891F
triadic
#7D891F #1F7D89 #891F7D
tetradic
#7D891F #1F8960 #2B1F89 #891F48
square
#7D891F #1F8960 #2B1F89 #891F48
split-complementary
#7D891F #1F4889 #601F89
monochromatic
#222508 #4F5714 #7D891F #ABBB2A #C7D64C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7D891F#FFFFFF#000000##000000
##7D891F1.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)
#938205
Deuteranopia (green-blind)
#928328
Tritanopia (blue-blind)
#858175
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #7d891f;
/* rgb */ color: rgb(125, 137, 31);
/* oklch */ color: oklch(60.1% 0.126 116.1);
Tailwind
colors: {
  custom: {
    50: '#a6ab64',
    500: '#7d891f',
    950: '#000000',
  },
}
SCSS
$custom: #7d891f;
$custom-light: #a6ab64;
$custom-dark: #000000;
JSON
{
  "hex": "#7d891f",
  "rgb": {
    "r": 125,
    "g": 137,
    "b": 31
  },
  "hsl": {
    "h": 66.792,
    "s": 63.095,
    "l": 32.941
  },
  "oklch": {
    "l": 0.60065,
    "c": 0.12565,
    "h": 116.1
  },
  "luminance": 0.2235
}

Semantic roles & 50–950 ramp

primary
#7D891F
secondary
#574BB9
accent
#42E654
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7D891F

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

Preview Lab → · Contrast checker → · Palette generator →

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