#7D8914#7D8914

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

Color values

HEX#7D8914
RGBrgb(125, 137, 20)
HSLhsl(66, 75%, 31%)
HSVhsv(66, 85%, 54%)
CMYKcmyk(8.8%, 0%, 85.4%, 46.3%)
CIE-LABlab(54.35, -18.61, 54.56)
CIE-LCHlch(54.35, 57.65, 108.83°)
OKLaboklab(60.01% -0.0572 0.1178)
OKLCHoklch(60.01% 0.131 115.9)
XYZxyz(17.5299, 22.3021, 4.0430)
Luminance0.2230 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D8914 #201489
analogous
#895A14 #7D8914 #428914
triadic
#7D8914 #147D89 #89147D
tetradic
#7D8914 #14895A #201489 #891442
square
#7D8914 #14895A #201489 #891442
split-complementary
#7D8914 #144289 #5A1489
monochromatic
#1C1E04 #4C540C #7D8914 #AEBE1C #D0E236

Accessibility & contrast

On white

3.85
#7D8914 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.46
#7D8914 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D8914
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D8914#FFFFFF#000000##000000
##7D89141.003.855.465.46
#FFFFFF3.851.0021.0021.00
#0000005.4621.001.001.00
##0000005.4621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7d8914;
/* rgb */ color: rgb(125, 137, 20);
/* oklch */ color: oklch(60.0% 0.131 115.9);
Tailwind
colors: {
  custom: {
    50: '#a6ab5f',
    500: '#7d8914',
    950: '#000000',
  },
}
SCSS
$custom: #7d8914;
$custom-light: #a6ab5f;
$custom-dark: #000000;
JSON
{
  "hex": "#7d8914",
  "rgb": {
    "r": 125,
    "g": 137,
    "b": 20
  },
  "hsl": {
    "h": 66.154,
    "s": 74.522,
    "l": 30.784
  },
  "oklch": {
    "l": 0.60008,
    "c": 0.13097,
    "h": 115.9
  },
  "luminance": 0.22302
}

Semantic roles & 50–950 ramp

primary
#7D8914
secondary
#493CBD
accent
#37F14A
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#101005
muted
#7F7F79

Preview Lab

Preview with #7D8914

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

Preview Lab → · Contrast checker → · Palette generator →

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