#7D8118#7D8118

#7D8118 is a mid, vivid yellow. Relative luminance 0.201; OKLCH L 58.1% C 0.120 H 111.9°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#7D8118
RGBrgb(125, 129, 24)
HSLhsl(62, 69%, 30%)
HSVhsv(62, 81%, 51%)
CMYKcmyk(3.1%, 0%, 81.4%, 49.4%)
CIE-LABlab(51.98, -14.25, 51.39)
CIE-LCHlch(51.98, 53.33, 105.50°)
OKLaboklab(58.12% -0.0449 0.1117)
OKLCHoklch(58.12% 0.12 111.9)
XYZxyz(16.4731, 20.1269, 3.8811)
Luminance0.2013 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D8118 #1C1881
analogous
#815118 #7D8118 #488118
triadic
#7D8118 #187D81 #81187D
tetradic
#7D8118 #188151 #1C1881 #811848
square
#7D8118 #188151 #1C1881 #811848
split-complementary
#7D8118 #184881 #511881
monochromatic
#191A05 #4B4D0E #7D8118 #AFB522 #D4DA39

Accessibility & contrast

On white

4.18
#7D8118 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#7D8118 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D8118
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D8118#FFFFFF#000000##000000
##7D81181.004.185.035.03
#FFFFFF4.181.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7B00
Deuteranopia (green-blind)
#8C7D22
Tritanopia (blue-blind)
#86796E
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #7d8118;
/* rgb */ color: rgb(125, 129, 24);
/* oklch */ color: oklch(58.1% 0.120 111.9);
Tailwind
colors: {
  custom: {
    50: '#a6a560',
    500: '#7d8118',
    950: '#000000',
  },
}
SCSS
$custom: #7d8118;
$custom-light: #a6a560;
$custom-dark: #000000;
JSON
{
  "hex": "#7d8118",
  "rgb": {
    "r": 125,
    "g": 129,
    "b": 24
  },
  "hsl": {
    "h": 62.286,
    "s": 68.627,
    "l": 30
  },
  "oklch": {
    "l": 0.58116,
    "c": 0.1204,
    "h": 111.9
  },
  "luminance": 0.20126
}

Semantic roles & 50–950 ramp

primary
#7D8118
secondary
#4440B5
accent
#3CEB43
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #7D8118

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

Preview Lab → · Contrast checker → · Palette generator →

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