#7C8B1D#7C8B1D

#7C8B1D is a mid, vivid yellow. Relative luminance 0.228; OKLCH L 60.5% C 0.129 H 117.4°. Best body text is #000000 at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#7C8B1D
RGBrgb(124, 139, 29)
HSLhsl(68, 65%, 33%)
HSVhsv(68, 79%, 55%)
CMYKcmyk(10.8%, 0%, 79.1%, 45.5%)
CIE-LABlab(54.91, -19.74, 52.42)
CIE-LCHlch(54.91, 56.02, 110.64°)
OKLaboklab(60.45% -0.0596 0.1149)
OKLCHoklch(60.45% 0.129 117.4)
XYZxyz(17.7670, 22.8392, 4.6346)
Luminance0.2284 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8B1D #2C1D8B
analogous
#8B631D #7C8B1D #458B1D
triadic
#7C8B1D #1D7C8B #8B1D7C
tetradic
#7C8B1D #1D8B63 #2C1D8B #8B1D45
square
#7C8B1D #1D8B63 #2C1D8B #8B1D45
split-complementary
#7C8B1D #1D458B #631D8B
monochromatic
#222608 #4F5812 #7C8B1D #A9BE28 #C5D949

Accessibility & contrast

On white

3.77
#7C8B1D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.57
#7C8B1D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8B1D
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8B1D#FFFFFF#000000##000000
##7C8B1D1.003.775.575.57
#FFFFFF3.771.0021.0021.00
#0000005.5721.001.001.00
##0000005.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#958300
Deuteranopia (green-blind)
#938427
Tritanopia (blue-blind)
#848377
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7c8b1d;
/* rgb */ color: rgb(124, 139, 29);
/* oklch */ color: oklch(60.5% 0.129 117.4);
Tailwind
colors: {
  custom: {
    50: '#a5ac63',
    500: '#7c8b1d',
    950: '#000000',
  },
}
SCSS
$custom: #7c8b1d;
$custom-light: #a5ac63;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8b1d",
  "rgb": {
    "r": 124,
    "g": 139,
    "b": 29
  },
  "hsl": {
    "h": 68.182,
    "s": 65.476,
    "l": 32.941
  },
  "oklch": {
    "l": 0.60452,
    "c": 0.12944,
    "h": 117.4
  },
  "luminance": 0.22839
}

Semantic roles & 50–950 ramp

primary
#7C8B1D
secondary
#5849BB
accent
#3FE856
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7C8B1D

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

Preview Lab → · Contrast checker → · Palette generator →

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