#7D8A27#7D8A27

#7D8A27 is a mid, vivid yellow. Relative luminance 0.227; OKLCH L 60.4% C 0.122 H 116.7°. Best body text is #000000 at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#7D8A27
RGBrgb(125, 138, 39)
HSLhsl(68, 56%, 35%)
HSVhsv(68, 72%, 54%)
CMYKcmyk(9.4%, 0%, 71.7%, 45.9%)
CIE-LABlab(54.74, -18.27, 48.70)
CIE-LCHlch(54.74, 52.02, 110.56°)
OKLaboklab(60.36% -0.0547 0.1088)
OKLCHoklch(60.36% 0.122 116.7)
XYZxyz(17.9126, 22.6836, 5.3538)
Luminance0.2268 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D8A27 #34278A
analogous
#8A6627 #7D8A27 #4B8A27
triadic
#7D8A27 #277D8A #8A277D
tetradic
#7D8A27 #278A66 #34278A #8A274B
square
#7D8A27 #278A66 #34278A #8A274B
split-complementary
#7D8A27 #274B8A #66278A
monochromatic
#272B0C #525A1A #7D8A27 #A8BA34 #C1D15B

Accessibility & contrast

On white

3.79
#7D8A27 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.54
#7D8A27 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D8A27
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D8A27#FFFFFF#000000##000000
##7D8A271.003.795.545.54
#FFFFFF3.791.0021.0021.00
#0000005.5421.001.001.00
##0000005.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#948317
Deuteranopia (green-blind)
#92842F
Tritanopia (blue-blind)
#858277
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7d8a27;
/* rgb */ color: rgb(125, 138, 39);
/* oklch */ color: oklch(60.4% 0.122 116.7);
Tailwind
colors: {
  custom: {
    50: '#a5ac68',
    500: '#7d8a27',
    950: '#000000',
  },
}
SCSS
$custom: #7d8a27;
$custom-light: #a5ac68;
$custom-dark: #000000;
JSON
{
  "hex": "#7d8a27",
  "rgb": {
    "r": 125,
    "g": 138,
    "b": 39
  },
  "hsl": {
    "h": 67.879,
    "s": 55.932,
    "l": 34.706
  },
  "oklch": {
    "l": 0.60361,
    "c": 0.12179,
    "h": 116.7
  },
  "luminance": 0.22683
}

Semantic roles & 50–950 ramp

primary
#7D8A27
secondary
#6457B6
accent
#49DF5C
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7D8A27

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

Preview Lab → · Contrast checker → · Palette generator →

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