#7D8117#7D8117

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

Color values

HEX#7D8117
RGBrgb(125, 129, 23)
HSLhsl(62, 70%, 30%)
HSVhsv(62, 82%, 51%)
CMYKcmyk(3.1%, 0%, 82.2%, 49.4%)
CIE-LABlab(51.98, -14.28, 51.68)
CIE-LCHlch(51.98, 53.62, 105.45°)
OKLaboklab(58.11% -0.0451 0.1122)
OKLCHoklch(58.11% 0.121 111.9)
XYZxyz(16.4629, 20.1228, 3.8273)
Luminance0.2012 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D8117 #1B1781
analogous
#815017 #7D8117 #488117
triadic
#7D8117 #177D81 #81177D
tetradic
#7D8117 #178150 #1B1781 #811748
square
#7D8117 #178150 #1B1781 #811748
split-complementary
#7D8117 #174881 #501781
monochromatic
#191A05 #4B4D0E #7D8117 #AFB520 #D5DB37

Accessibility & contrast

On white

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

On black

5.02
#7D8117 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D8117
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D8117#FFFFFF#000000##000000
##7D81171.004.185.025.02
#FFFFFF4.181.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7d8117;
/* rgb */ color: rgb(125, 129, 23);
/* oklch */ color: oklch(58.1% 0.121 111.9);
Tailwind
colors: {
  custom: {
    50: '#a6a55f',
    500: '#7d8117',
    950: '#000000',
  },
}
SCSS
$custom: #7d8117;
$custom-light: #a6a55f;
$custom-dark: #000000;
JSON
{
  "hex": "#7d8117",
  "rgb": {
    "r": 125,
    "g": 129,
    "b": 23
  },
  "hsl": {
    "h": 62.264,
    "s": 69.737,
    "l": 29.804
  },
  "oklch": {
    "l": 0.58111,
    "c": 0.12088,
    "h": 111.9
  },
  "luminance": 0.20122
}

Semantic roles & 50–950 ramp

primary
#7D8117
secondary
#433EB5
accent
#3BED42
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #7D8117

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

Preview Lab → · Contrast checker → · Palette generator →

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