#7D8A2C#7D8A2C

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

Color values

HEX#7D8A2C
RGBrgb(125, 138, 44)
HSLhsl(68, 52%, 36%)
HSVhsv(68, 68%, 54%)
CMYKcmyk(9.4%, 0%, 68.1%, 45.9%)
CIE-LABlab(54.78, -17.96, 46.70)
CIE-LCHlch(54.78, 50.04, 111.03°)
OKLaboklab(60.4% -0.0533 0.1054)
OKLCHoklch(60.4% 0.118 116.8)
XYZxyz(18.0009, 22.7190, 5.8193)
Luminance0.2272 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D8A2C #392C8A
analogous
#8A682C #7D8A2C #4E8A2C
triadic
#7D8A2C #2C7D8A #8A2C7D
tetradic
#7D8A2C #2C8A68 #392C8A #8A2C4E
square
#7D8A2C #2C8A68 #392C8A #8A2C4E
split-complementary
#7D8A2C #2C4E8A #682C8A
monochromatic
#292D0E #535C1D #7D8A2C #A7B83B #BFCD63

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7D8A2C#FFFFFF#000000##000000
##7D8A2C1.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)
#93831F
Deuteranopia (green-blind)
#928433
Tritanopia (blue-blind)
#858277
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7d8a2c;
/* rgb */ color: rgb(125, 138, 44);
/* oklch */ color: oklch(60.4% 0.118 116.8);
Tailwind
colors: {
  custom: {
    50: '#a5ac6b',
    500: '#7d8a2c',
    950: '#000000',
  },
}
SCSS
$custom: #7d8a2c;
$custom-light: #a5ac6b;
$custom-dark: #000000;
JSON
{
  "hex": "#7d8a2c",
  "rgb": {
    "r": 125,
    "g": 138,
    "b": 44
  },
  "hsl": {
    "h": 68.298,
    "s": 51.648,
    "l": 35.686
  },
  "oklch": {
    "l": 0.60402,
    "c": 0.11815,
    "h": 116.8
  },
  "luminance": 0.22719
}

Semantic roles & 50–950 ramp

primary
#7D8A2C
secondary
#6A5EB4
accent
#4DDB60
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101007
muted
#7F7F7A

Preview Lab

Preview with #7D8A2C

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

Preview Lab → · Contrast checker → · Palette generator →

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