#7D8A1C#7D8A1C

#7D8A1C is a mid, vivid yellow. Relative luminance 0.226; OKLCH L 60.3% C 0.128 H 116.5°. Best body text is #000000 at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#7D8A1C
RGBrgb(125, 138, 28)
HSLhsl(67, 66%, 33%)
HSVhsv(67, 80%, 54%)
CMYKcmyk(9.4%, 0%, 79.7%, 45.9%)
CIE-LABlab(54.68, -18.83, 52.56)
CIE-LCHlch(54.68, 55.83, 109.70°)
OKLaboklab(60.29% -0.0572 0.115)
OKLCHoklch(60.29% 0.128 116.5)
XYZxyz(17.7560, 22.6210, 4.5293)
Luminance0.2262 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D8A1C #291C8A
analogous
#8A601C #7D8A1C #468A1C
triadic
#7D8A1C #1C7D8A #8A1C7D
tetradic
#7D8A1C #1C8A60 #291C8A #8A1C46
square
#7D8A1C #1C8A60 #291C8A #8A1C46
split-complementary
#7D8A1C #1C468A #601C8A
monochromatic
#212407 #4F5712 #7D8A1C #ABBD26 #C8DA47

Accessibility & contrast

On white

3.80
#7D8A1C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.52
#7D8A1C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D8A1C
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D8A1C#FFFFFF#000000##000000
##7D8A1C1.003.805.525.52
#FFFFFF3.801.0021.0021.00
#0000005.5221.001.001.00
##0000005.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#948200
Deuteranopia (green-blind)
#938426
Tritanopia (blue-blind)
#858276
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7d8a1c;
/* rgb */ color: rgb(125, 138, 28);
/* oklch */ color: oklch(60.3% 0.128 116.5);
Tailwind
colors: {
  custom: {
    50: '#a6ac63',
    500: '#7d8a1c',
    950: '#000000',
  },
}
SCSS
$custom: #7d8a1c;
$custom-light: #a6ac63;
$custom-dark: #000000;
JSON
{
  "hex": "#7d8a1c",
  "rgb": {
    "r": 125,
    "g": 138,
    "b": 28
  },
  "hsl": {
    "h": 67.091,
    "s": 66.265,
    "l": 32.549
  },
  "oklch": {
    "l": 0.60287,
    "c": 0.12843,
    "h": 116.5
  },
  "luminance": 0.22621
}

Semantic roles & 50–950 ramp

primary
#7D8A1C
secondary
#5446BB
accent
#3FE953
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7D8A1C

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

Preview Lab → · Contrast checker → · Palette generator →

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