#7C8B20#7C8B20

#7C8B20 is a mid, vivid yellow. Relative luminance 0.229; OKLCH L 60.5% C 0.128 H 117.5°. Best body text is #000000 at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#7C8B20
RGBrgb(124, 139, 32)
HSLhsl(68, 63%, 34%)
HSVhsv(68, 77%, 55%)
CMYKcmyk(10.8%, 0%, 77%, 45.5%)
CIE-LABlab(54.92, -19.60, 51.43)
CIE-LCHlch(54.92, 55.04, 110.86°)
OKLaboklab(60.47% -0.059 0.1134)
OKLCHoklch(60.47% 0.128 117.5)
XYZxyz(17.8059, 22.8548, 4.8396)
Luminance0.2286 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8B20 #2F208B
analogous
#8B6420 #7C8B20 #468B20
triadic
#7C8B20 #207C8B #8B207C
tetradic
#7C8B20 #208B64 #2F208B #8B2046
square
#7C8B20 #208B64 #2F208B #8B2046
split-complementary
#7C8B20 #20468B #64208B
monochromatic
#232809 #505915 #7C8B20 #A8BD2B #C3D64F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7C8B20#FFFFFF#000000##000000
##7C8B201.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)
#958307
Deuteranopia (green-blind)
#93842A
Tritanopia (blue-blind)
#848377
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7c8b20;
/* rgb */ color: rgb(124, 139, 32);
/* oklch */ color: oklch(60.5% 0.128 117.5);
Tailwind
colors: {
  custom: {
    50: '#a5ac65',
    500: '#7c8b20',
    950: '#000000',
  },
}
SCSS
$custom: #7c8b20;
$custom-light: #a5ac65;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8b20",
  "rgb": {
    "r": 124,
    "g": 139,
    "b": 32
  },
  "hsl": {
    "h": 68.411,
    "s": 62.573,
    "l": 33.529
  },
  "oklch": {
    "l": 0.6047,
    "c": 0.12778,
    "h": 117.5
  },
  "luminance": 0.22855
}

Semantic roles & 50–950 ramp

primary
#7C8B20
secondary
#5C4DBA
accent
#42E659
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7C8B20

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

Preview Lab → · Contrast checker → · Palette generator →

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