#7C8E1D#7C8E1D

#7C8E1D is a mid, vivid yellow. Relative luminance 0.237; OKLCH L 61.2% C 0.133 H 118.7°. Best body text is #000000 at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#7C8E1D
RGBrgb(124, 142, 29)
HSLhsl(70, 66%, 34%)
HSVhsv(70, 80%, 56%)
CMYKcmyk(12.7%, 0%, 79.6%, 44.3%)
CIE-LABlab(55.81, -21.28, 53.24)
CIE-LCHlch(55.81, 57.34, 111.78°)
OKLaboklab(61.18% -0.0639 0.1166)
OKLCHoklch(61.18% 0.133 118.7)
XYZxyz(18.2074, 23.7199, 4.7814)
Luminance0.2372 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8E1D #2F1D8E
analogous
#8E671D #7C8E1D #438E1D
triadic
#7C8E1D #1D7C8E #8E1D7C
tetradic
#7C8E1D #1D8E67 #2F1D8E #8E1D43
square
#7C8E1D #1D8E67 #2F1D8E #8E1D43
split-complementary
#7C8E1D #1D438E #671D8E
monochromatic
#232808 #505B13 #7C8E1D #A8C127 #C3DA4B

Accessibility & contrast

On white

3.66
#7C8E1D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.74
#7C8E1D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8E1D
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8E1D#FFFFFF#000000##000000
##7C8E1D1.003.665.745.74
#FFFFFF3.661.0021.0021.00
#0000005.7421.001.001.00
##0000005.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#988600
Deuteranopia (green-blind)
#968628
Tritanopia (blue-blind)
#848679
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #7c8e1d;
/* rgb */ color: rgb(124, 142, 29);
/* oklch */ color: oklch(61.2% 0.133 118.7);
Tailwind
colors: {
  custom: {
    50: '#a5af64',
    500: '#7c8e1d',
    950: '#000000',
  },
}
SCSS
$custom: #7c8e1d;
$custom-light: #a5af64;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8e1d",
  "rgb": {
    "r": 124,
    "g": 142,
    "b": 29
  },
  "hsl": {
    "h": 69.558,
    "s": 66.082,
    "l": 33.529
  },
  "oklch": {
    "l": 0.61176,
    "c": 0.13298,
    "h": 118.7
  },
  "luminance": 0.2372
}

Semantic roles & 50–950 ramp

primary
#7C8E1D
secondary
#5C4ABD
accent
#3FE95A
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7C8E1D

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

Preview Lab → · Contrast checker → · Palette generator →

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