#7C8D1B#7C8D1B

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

Color values

HEX#7C8D1B
RGBrgb(124, 141, 27)
HSLhsl(69, 68%, 33%)
HSVhsv(69, 81%, 55%)
CMYKcmyk(12.1%, 0%, 80.9%, 44.7%)
CIE-LABlab(55.50, -20.85, 53.58)
CIE-LCHlch(55.50, 57.50, 111.27°)
OKLaboklab(60.92% -0.0628 0.117)
OKLCHoklch(60.92% 0.133 118.2)
XYZxyz(18.0353, 23.4141, 4.6060)
Luminance0.2341 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8D1B #2C1B8D
analogous
#8D651B #7C8D1B #438D1B
triadic
#7C8D1B #1B7C8D #8D1B7C
tetradic
#7C8D1B #1B8D65 #2C1B8D #8D1B43
square
#7C8D1B #1B8D65 #2C1B8D #8D1B43
split-complementary
#7C8D1B #1B438D #651B8D
monochromatic
#222607 #4F5A11 #7C8D1B #A9C025 #C5DC47

Accessibility & contrast

On white

3.70
#7C8D1B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.68
#7C8D1B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8D1B
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8D1B#FFFFFF#000000##000000
##7C8D1B1.003.705.685.68
#FFFFFF3.701.0021.0021.00
#0000005.6821.001.001.00
##0000005.6821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7c8d1b;
/* rgb */ color: rgb(124, 141, 27);
/* oklch */ color: oklch(60.9% 0.133 118.2);
Tailwind
colors: {
  custom: {
    50: '#a5ae63',
    500: '#7c8d1b',
    950: '#000000',
  },
}
SCSS
$custom: #7c8d1b;
$custom-light: #a5ae63;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8d1b",
  "rgb": {
    "r": 124,
    "g": 141,
    "b": 27
  },
  "hsl": {
    "h": 68.947,
    "s": 67.857,
    "l": 32.941
  },
  "oklch": {
    "l": 0.60923,
    "c": 0.13281,
    "h": 118.2
  },
  "luminance": 0.23414
}

Semantic roles & 50–950 ramp

primary
#7C8D1B
secondary
#5846BD
accent
#3DEB57
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7C8D1B

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

Preview Lab → · Contrast checker → · Palette generator →

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