#7D8927#7D8927

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

Color values

HEX#7D8927
RGBrgb(125, 137, 39)
HSLhsl(67, 56%, 35%)
HSVhsv(67, 72%, 54%)
CMYKcmyk(8.8%, 0%, 71.5%, 46.3%)
CIE-LABlab(54.45, -17.75, 48.41)
CIE-LCHlch(54.45, 51.56, 110.13°)
OKLaboklab(60.12% -0.0532 0.1082)
OKLCHoklch(60.12% 0.121 116.2)
XYZxyz(17.7697, 22.3980, 5.3062)
Luminance0.2240 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D8927 #332789
analogous
#896427 #7D8927 #4C8927
triadic
#7D8927 #277D89 #89277D
tetradic
#7D8927 #278964 #332789 #89274C
square
#7D8927 #278964 #332789 #89274C
split-complementary
#7D8927 #274C89 #642789
monochromatic
#262A0C #525919 #7D8927 #A8B935 #C2D05A

Accessibility & contrast

On white

3.83
#7D8927 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.48
#7D8927 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D8927
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D8927#FFFFFF#000000##000000
##7D89271.003.835.485.48
#FFFFFF3.831.0021.0021.00
#0000005.4821.001.001.00
##0000005.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#938217
Deuteranopia (green-blind)
#92832F
Tritanopia (blue-blind)
#858176
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #7d8927;
/* rgb */ color: rgb(125, 137, 39);
/* oklch */ color: oklch(60.1% 0.121 116.2);
Tailwind
colors: {
  custom: {
    50: '#a5ab68',
    500: '#7d8927',
    950: '#000000',
  },
}
SCSS
$custom: #7d8927;
$custom-light: #a5ab68;
$custom-dark: #000000;
JSON
{
  "hex": "#7d8927",
  "rgb": {
    "r": 125,
    "g": 137,
    "b": 39
  },
  "hsl": {
    "h": 67.347,
    "s": 55.682,
    "l": 34.51
  },
  "oklch": {
    "l": 0.60121,
    "c": 0.12058,
    "h": 116.2
  },
  "luminance": 0.22398
}

Semantic roles & 50–950 ramp

primary
#7D8927
secondary
#6257B5
accent
#49DF5B
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7D8927

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

Preview Lab → · Contrast checker → · Palette generator →

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