#7C8C1B#7C8C1B

#7C8C1B is a mid, vivid yellow. Relative luminance 0.231; OKLCH L 60.7% C 0.132 H 117.8°. Best body text is #000000 at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#7C8C1B
RGBrgb(124, 140, 27)
HSLhsl(68, 68%, 33%)
HSVhsv(68, 81%, 55%)
CMYKcmyk(11.4%, 0%, 80.7%, 45.1%)
CIE-LABlab(55.20, -20.34, 53.31)
CIE-LCHlch(55.20, 57.06, 110.89°)
OKLaboklab(60.68% -0.0614 0.1164)
OKLCHoklch(60.68% 0.132 117.8)
XYZxyz(17.8885, 23.1206, 4.5570)
Luminance0.2312 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8C1B #2B1B8C
analogous
#8C641B #7C8C1B #438C1B
triadic
#7C8C1B #1B7C8C #8C1B7C
tetradic
#7C8C1B #1B8C64 #2B1B8C #8C1B43
square
#7C8C1B #1B8C64 #2B1B8C #8C1B43
split-complementary
#7C8C1B #1B438C #641B8C
monochromatic
#212507 #4F5911 #7C8C1B #A9BF25 #C6DB46

Accessibility & contrast

On white

3.73
#7C8C1B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.62
#7C8C1B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8C1B
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8C1B#FFFFFF#000000##000000
##7C8C1B1.003.735.625.62
#FFFFFF3.731.0021.0021.00
#0000005.6221.001.001.00
##0000005.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#968400
Deuteranopia (green-blind)
#948526
Tritanopia (blue-blind)
#848477
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #7c8c1b;
/* rgb */ color: rgb(124, 140, 27);
/* oklch */ color: oklch(60.7% 0.132 117.8);
Tailwind
colors: {
  custom: {
    50: '#a5ad62',
    500: '#7c8c1b',
    950: '#000000',
  },
}
SCSS
$custom: #7c8c1b;
$custom-light: #a5ad62;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8c1b",
  "rgb": {
    "r": 124,
    "g": 140,
    "b": 27
  },
  "hsl": {
    "h": 68.496,
    "s": 67.665,
    "l": 32.745
  },
  "oklch": {
    "l": 0.60682,
    "c": 0.13164,
    "h": 117.8
  },
  "luminance": 0.2312
}

Semantic roles & 50–950 ramp

primary
#7C8C1B
secondary
#5746BD
accent
#3DEB56
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7C8C1B

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

Preview Lab → · Contrast checker → · Palette generator →

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