#7C8118#7C8118

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

Color values

HEX#7C8118
RGBrgb(124, 129, 24)
HSLhsl(63, 69%, 30%)
HSVhsv(63, 81%, 51%)
CMYKcmyk(3.9%, 0%, 81.4%, 49.4%)
CIE-LABlab(51.90, -14.70, 51.28)
CIE-LCHlch(51.90, 53.35, 106.00°)
OKLaboklab(58.03% -0.0461 0.1115)
OKLCHoklch(58.03% 0.121 112.5)
XYZxyz(16.3279, 20.0519, 3.8743)
Luminance0.2005 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8118 #1D1881
analogous
#815118 #7C8118 #488118
triadic
#7C8118 #187C81 #81187C
tetradic
#7C8118 #188151 #1D1881 #811848
square
#7C8118 #188151 #1D1881 #811848
split-complementary
#7C8118 #184881 #511881
monochromatic
#191A05 #4A4D0E #7C8118 #AEB522 #D3DA39

Accessibility & contrast

On white

4.19
#7C8118 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#7C8118 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8118
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8118#FFFFFF#000000##000000
##7C81181.004.195.015.01
#FFFFFF4.191.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7c8118;
/* rgb */ color: rgb(124, 129, 24);
/* oklch */ color: oklch(58.0% 0.121 112.5);
Tailwind
colors: {
  custom: {
    50: '#a5a560',
    500: '#7c8118',
    950: '#000000',
  },
}
SCSS
$custom: #7c8118;
$custom-light: #a5a560;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8118",
  "rgb": {
    "r": 124,
    "g": 129,
    "b": 24
  },
  "hsl": {
    "h": 62.857,
    "s": 68.627,
    "l": 30
  },
  "oklch": {
    "l": 0.58027,
    "c": 0.12069,
    "h": 112.5
  },
  "luminance": 0.20052
}

Semantic roles & 50–950 ramp

primary
#7C8118
secondary
#4540B5
accent
#3CEB45
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #7C8118

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

Preview Lab → · Contrast checker → · Palette generator →

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