#7D8725#7D8725

#7D8725 is a mid, moderate yellow. Relative luminance 0.218; OKLCH L 59.6% C 0.120 H 115.2°. Best body text is #000000 at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#7D8725
RGBrgb(125, 135, 37)
HSLhsl(66, 57%, 34%)
HSVhsv(66, 73%, 53%)
CMYKcmyk(7.4%, 0%, 72.6%, 47.1%)
CIE-LABlab(53.84, -16.81, 48.59)
CIE-LCHlch(53.84, 51.41, 109.09°)
OKLaboklab(59.63% -0.0508 0.1082)
OKLCHoklch(59.63% 0.12 115.2)
XYZxyz(17.4558, 21.8218, 5.0424)
Luminance0.2182 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D8725 #2F2587
analogous
#876025 #7D8725 #4C8725
triadic
#7D8725 #257D87 #87257D
tetradic
#7D8725 #258760 #2F2587 #87254C
square
#7D8725 #258760 #2F2587 #87254C
split-complementary
#7D8725 #254C87 #602587
monochromatic
#24270B #515718 #7D8725 #A9B732 #C4D156

Accessibility & contrast

On white

3.91
#7D8725 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.36
#7D8725 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D8725
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D8725#FFFFFF#000000##000000
##7D87251.003.915.365.36
#FFFFFF3.911.0021.0021.00
#0000005.3621.001.001.00
##0000005.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#918014
Deuteranopia (green-blind)
#90812D
Tritanopia (blue-blind)
#857F74
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #7d8725;
/* rgb */ color: rgb(125, 135, 37);
/* oklch */ color: oklch(59.6% 0.120 115.2);
Tailwind
colors: {
  custom: {
    50: '#a5a967',
    500: '#7d8725',
    950: '#000000',
  },
}
SCSS
$custom: #7d8725;
$custom-light: #a5a967;
$custom-dark: #000000;
JSON
{
  "hex": "#7d8725",
  "rgb": {
    "r": 125,
    "g": 135,
    "b": 37
  },
  "hsl": {
    "h": 66.122,
    "s": 56.977,
    "l": 33.725
  },
  "oklch": {
    "l": 0.59628,
    "c": 0.11956,
    "h": 115.2
  },
  "luminance": 0.21821
}

Semantic roles & 50–950 ramp

primary
#7D8725
secondary
#5D53B5
accent
#48E057
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7D8725

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

Preview Lab → · Contrast checker → · Palette generator →

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