#7C8E1B#7C8E1B

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

Color values

HEX#7C8E1B
RGBrgb(124, 142, 27)
HSLhsl(69, 68%, 33%)
HSVhsv(69, 81%, 56%)
CMYKcmyk(12.7%, 0%, 81%, 44.3%)
CIE-LABlab(55.80, -21.36, 53.85)
CIE-LCHlch(55.80, 57.94, 111.64°)
OKLaboklab(61.17% -0.0642 0.1176)
OKLCHoklch(61.17% 0.134 118.7)
XYZxyz(18.1834, 23.7104, 4.6553)
Luminance0.2371 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8E1B #2D1B8E
analogous
#8E661B #7C8E1B #438E1B
triadic
#7C8E1B #1B7C8E #8E1B7C
tetradic
#7C8E1B #1B8E66 #2D1B8E #8E1B43
square
#7C8E1B #1B8E66 #2D1B8E #8E1B43
split-complementary
#7C8E1B #1B438E #661B8E
monochromatic
#222707 #4F5B11 #7C8E1B #A9C125 #C5DC47

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7C8E1B#FFFFFF#000000##000000
##7C8E1B1.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)
#968627
Tritanopia (blue-blind)
#848679
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #7c8e1b;
/* rgb */ color: rgb(124, 142, 27);
/* oklch */ color: oklch(61.2% 0.134 118.7);
Tailwind
colors: {
  custom: {
    50: '#a5af63',
    500: '#7c8e1b',
    950: '#000000',
  },
}
SCSS
$custom: #7c8e1b;
$custom-light: #a5af63;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8e1b",
  "rgb": {
    "r": 124,
    "g": 142,
    "b": 27
  },
  "hsl": {
    "h": 69.391,
    "s": 68.047,
    "l": 33.137
  },
  "oklch": {
    "l": 0.61165,
    "c": 0.13398,
    "h": 118.7
  },
  "luminance": 0.2371
}

Semantic roles & 50–950 ramp

primary
#7C8E1B
secondary
#5A47BE
accent
#3DEB58
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7C8E1B

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

Preview Lab → · Contrast checker → · Palette generator →

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