#7C8D1F#7C8D1F

#7C8D1F is a mid, vivid yellow. Relative luminance 0.234; OKLCH L 60.9% C 0.131 H 118.3°. Best body text is #000000 at 5.69:1 contrast (WCAG AA passes).

Color values

HEX#7C8D1F
RGBrgb(124, 141, 31)
HSLhsl(69, 64%, 34%)
HSVhsv(69, 78%, 55%)
CMYKcmyk(12.1%, 0%, 78%, 44.7%)
CIE-LABlab(55.52, -20.68, 52.33)
CIE-LCHlch(55.52, 56.27, 111.56°)
OKLaboklab(60.95% -0.062 0.1151)
OKLCHoklch(60.95% 0.131 118.3)
XYZxyz(18.0848, 23.4339, 4.8665)
Luminance0.2343 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8D1F #301F8D
analogous
#8D671F #7C8D1F #458D1F
triadic
#7C8D1F #1F7C8D #8D1F7C
tetradic
#7C8D1F #1F8D67 #301F8D #8D1F45
square
#7C8D1F #1F8D67 #301F8D #8D1F45
split-complementary
#7C8D1F #1F458D #671F8D
monochromatic
#242909 #505B14 #7C8D1F #A8BF2A #C3D84E

Accessibility & contrast

On white

3.69
#7C8D1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.69
#7C8D1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8D1F
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8D1F#FFFFFF#000000##000000
##7C8D1F1.003.695.695.69
#FFFFFF3.691.0021.0021.00
#0000005.6921.001.001.00
##0000005.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#978503
Deuteranopia (green-blind)
#958529
Tritanopia (blue-blind)
#848578
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #7c8d1f;
/* rgb */ color: rgb(124, 141, 31);
/* oklch */ color: oklch(60.9% 0.131 118.3);
Tailwind
colors: {
  custom: {
    50: '#a5ae64',
    500: '#7c8d1f',
    950: '#000000',
  },
}
SCSS
$custom: #7c8d1f;
$custom-light: #a5ae64;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8d1f",
  "rgb": {
    "r": 124,
    "g": 141,
    "b": 31
  },
  "hsl": {
    "h": 69.273,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.60946,
    "c": 0.13072,
    "h": 118.3
  },
  "luminance": 0.23434
}

Semantic roles & 50–950 ramp

primary
#7C8D1F
secondary
#5E4DBB
accent
#41E75B
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7C8D1F

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

Preview Lab → · Contrast checker → · Palette generator →

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