#7C8A22#7C8A22

#7C8A22 is a mid, vivid yellow. Relative luminance 0.226; OKLCH L 60.2% C 0.125 H 117.1°. Best body text is #000000 at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#7C8A22
RGBrgb(124, 138, 34)
HSLhsl(68, 60%, 34%)
HSVhsv(68, 75%, 54%)
CMYKcmyk(10.1%, 0%, 75.4%, 45.9%)
CIE-LABlab(54.63, -18.99, 50.46)
CIE-LCHlch(54.63, 53.91, 110.62°)
OKLaboklab(60.24% -0.0571 0.1116)
OKLCHoklch(60.24% 0.125 117.1)
XYZxyz(17.6898, 22.5778, 4.9391)
Luminance0.2258 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8A22 #30228A
analogous
#8A6422 #7C8A22 #488A22
triadic
#7C8A22 #227C8A #8A227C
tetradic
#7C8A22 #228A64 #30228A #8A2248
square
#7C8A22 #228A64 #30228A #8A2248
split-complementary
#7C8A22 #22488A #64228A
monochromatic
#24280A #505916 #7C8A22 #A8BB2E #C3D452

Accessibility & contrast

On white

3.81
#7C8A22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.52
#7C8A22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8A22
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8A22#FFFFFF#000000##000000
##7C8A221.003.815.525.52
#FFFFFF3.811.0021.0021.00
#0000005.5221.001.001.00
##0000005.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#94820C
Deuteranopia (green-blind)
#92832B
Tritanopia (blue-blind)
#848276
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7c8a22;
/* rgb */ color: rgb(124, 138, 34);
/* oklch */ color: oklch(60.2% 0.125 117.1);
Tailwind
colors: {
  custom: {
    50: '#a5ac65',
    500: '#7c8a22',
    950: '#000000',
  },
}
SCSS
$custom: #7c8a22;
$custom-light: #a5ac65;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8a22",
  "rgb": {
    "r": 124,
    "g": 138,
    "b": 34
  },
  "hsl": {
    "h": 68.077,
    "s": 60.465,
    "l": 33.725
  },
  "oklch": {
    "l": 0.60242,
    "c": 0.1254,
    "h": 117.1
  },
  "luminance": 0.22578
}

Semantic roles & 50–950 ramp

primary
#7C8A22
secondary
#5E50B8
accent
#44E45A
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7C8A22

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

Preview Lab → · Contrast checker → · Palette generator →

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