#7C8B22#7C8B22

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

Color values

HEX#7C8B22
RGBrgb(124, 139, 34)
HSLhsl(69, 61%, 34%)
HSVhsv(69, 76%, 55%)
CMYKcmyk(10.8%, 0%, 75.5%, 45.5%)
CIE-LABlab(54.93, -19.50, 50.74)
CIE-LCHlch(54.93, 54.36, 111.03°)
OKLaboklab(60.48% -0.0585 0.1123)
OKLCHoklch(60.48% 0.127 117.5)
XYZxyz(17.8340, 22.8660, 4.9872)
Luminance0.2287 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8B22 #31228B
analogous
#8B6622 #7C8B22 #488B22
triadic
#7C8B22 #227C8B #8B227C
tetradic
#7C8B22 #228B66 #31228B #8B2248
square
#7C8B22 #228B66 #31228B #8B2248
split-complementary
#7C8B22 #22488B #66228B
monochromatic
#24290A #505A16 #7C8B22 #A8BC2E #C2D553

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7C8B22#FFFFFF#000000##000000
##7C8B221.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)
#95830C
Deuteranopia (green-blind)
#93842B
Tritanopia (blue-blind)
#848377
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7c8b22;
/* rgb */ color: rgb(124, 139, 34);
/* oklch */ color: oklch(60.5% 0.127 117.5);
Tailwind
colors: {
  custom: {
    50: '#a5ac65',
    500: '#7c8b22',
    950: '#000000',
  },
}
SCSS
$custom: #7c8b22;
$custom-light: #a5ac65;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8b22",
  "rgb": {
    "r": 124,
    "g": 139,
    "b": 34
  },
  "hsl": {
    "h": 68.571,
    "s": 60.694,
    "l": 33.922
  },
  "oklch": {
    "l": 0.60483,
    "c": 0.1266,
    "h": 117.5
  },
  "luminance": 0.22866
}

Semantic roles & 50–950 ramp

primary
#7C8B22
secondary
#5F50B8
accent
#44E45B
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7C8B22

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

Preview Lab → · Contrast checker → · Palette generator →

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