#7C8B1B#7C8B1B

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

Color values

HEX#7C8B1B
RGBrgb(124, 139, 27)
HSLhsl(68, 67%, 33%)
HSVhsv(68, 81%, 55%)
CMYKcmyk(10.8%, 0%, 80.6%, 45.5%)
CIE-LABlab(54.90, -19.83, 53.04)
CIE-LCHlch(54.90, 56.63, 110.50°)
OKLaboklab(60.44% -0.06 0.1159)
OKLCHoklch(60.44% 0.13 117.4)
XYZxyz(17.7431, 22.8297, 4.5086)
Luminance0.2283 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8B1B #2A1B8B
analogous
#8B621B #7C8B1B #448B1B
triadic
#7C8B1B #1B7C8B #8B1B7C
tetradic
#7C8B1B #1B8B62 #2A1B8B #8B1B44
square
#7C8B1B #1B8B62 #2A1B8B #8B1B44
split-complementary
#7C8B1B #1B448B #621B8B
monochromatic
#212507 #4E5811 #7C8B1B #AABE25 #C7DB45

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7C8B1B#FFFFFF#000000##000000
##7C8B1B1.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)
#938426
Tritanopia (blue-blind)
#848376
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7c8b1b;
/* rgb */ color: rgb(124, 139, 27);
/* oklch */ color: oklch(60.4% 0.130 117.4);
Tailwind
colors: {
  custom: {
    50: '#a5ac62',
    500: '#7c8b1b',
    950: '#000000',
  },
}
SCSS
$custom: #7c8b1b;
$custom-light: #a5ac62;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8b1b",
  "rgb": {
    "r": 124,
    "g": 139,
    "b": 27
  },
  "hsl": {
    "h": 68.036,
    "s": 67.47,
    "l": 32.549
  },
  "oklch": {
    "l": 0.60441,
    "c": 0.13048,
    "h": 117.4
  },
  "luminance": 0.22829
}

Semantic roles & 50–950 ramp

primary
#7C8B1B
secondary
#5545BC
accent
#3DEA55
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7C8B1B

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

Preview Lab → · Contrast checker → · Palette generator →

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