#7C8A1B#7C8A1B

#7C8A1B is a mid, vivid yellow. Relative luminance 0.225; OKLCH L 60.2% C 0.129 H 117.0°. Best body text is #000000 at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#7C8A1B
RGBrgb(124, 138, 27)
HSLhsl(68, 67%, 32%)
HSVhsv(68, 80%, 54%)
CMYKcmyk(10.1%, 0%, 80.4%, 45.9%)
CIE-LABlab(54.60, -19.31, 52.77)
CIE-LCHlch(54.60, 56.20, 110.10°)
OKLaboklab(60.2% -0.0586 0.1153)
OKLCHoklch(60.2% 0.129 117)
XYZxyz(17.5989, 22.5414, 4.4605)
Luminance0.2254 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8A1B #291B8A
analogous
#8A611B #7C8A1B #448A1B
triadic
#7C8A1B #1B7C8A #8A1B7C
tetradic
#7C8A1B #1B8A61 #291B8A #8A1B44
square
#7C8A1B #1B8A61 #291B8A #8A1B44
split-complementary
#7C8A1B #1B448A #611B8A
monochromatic
#202407 #4E5711 #7C8A1B #AABD25 #C8DB45

Accessibility & contrast

On white

3.81
#7C8A1B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.51
#7C8A1B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8A1B
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8A1B#FFFFFF#000000##000000
##7C8A1B1.003.815.515.51
#FFFFFF3.811.0021.0021.00
#0000005.5121.001.001.00
##0000005.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#948200
Deuteranopia (green-blind)
#938326
Tritanopia (blue-blind)
#848276
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7c8a1b;
/* rgb */ color: rgb(124, 138, 27);
/* oklch */ color: oklch(60.2% 0.129 117.0);
Tailwind
colors: {
  custom: {
    50: '#a5ac62',
    500: '#7c8a1b',
    950: '#000000',
  },
}
SCSS
$custom: #7c8a1b;
$custom-light: #a5ac62;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8a1b",
  "rgb": {
    "r": 124,
    "g": 138,
    "b": 27
  },
  "hsl": {
    "h": 67.568,
    "s": 67.273,
    "l": 32.353
  },
  "oklch": {
    "l": 0.602,
    "c": 0.12931,
    "h": 117
  },
  "luminance": 0.22541
}

Semantic roles & 50–950 ramp

primary
#7C8A1B
secondary
#5445BC
accent
#3EEA53
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7C8A1B

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

Preview Lab → · Contrast checker → · Palette generator →

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