#7C8522#7C8522

#7C8522 is a mid, moderate yellow. Relative luminance 0.212; OKLCH L 59.0% C 0.120 H 114.7°. Best body text is #000000 at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#7C8522
RGBrgb(124, 133, 34)
HSLhsl(65, 59%, 33%)
HSVhsv(65, 74%, 52%)
CMYKcmyk(6.8%, 0%, 74.4%, 47.8%)
CIE-LABlab(53.14, -16.37, 49.02)
CIE-LCHlch(53.14, 51.69, 108.47°)
OKLaboklab(59.04% -0.0499 0.1086)
OKLCHoklch(59.04% 0.12 114.7)
XYZxyz(16.9889, 21.1759, 4.7055)
Luminance0.2118 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8522 #2B2285
analogous
#855D22 #7C8522 #4A8522
triadic
#7C8522 #227C85 #85227C
tetradic
#7C8522 #22855D #2B2285 #85224A
square
#7C8522 #22855D #2B2285 #85224A
split-complementary
#7C8522 #224A85 #5D2285
monochromatic
#212409 #4F5416 #7C8522 #A9B62E #C6D24F

Accessibility & contrast

On white

4.01
#7C8522 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.24
#7C8522 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8522
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8522#FFFFFF#000000##000000
##7C85221.004.015.245.24
#FFFFFF4.011.0021.0021.00
#0000005.2421.001.001.00
##0000005.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E0F
Deuteranopia (green-blind)
#8E802A
Tritanopia (blue-blind)
#847D72
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #7c8522;
/* rgb */ color: rgb(124, 133, 34);
/* oklch */ color: oklch(59.0% 0.120 114.7);
Tailwind
colors: {
  custom: {
    50: '#a5a865',
    500: '#7c8522',
    950: '#000000',
  },
}
SCSS
$custom: #7c8522;
$custom-light: #a5a865;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8522",
  "rgb": {
    "r": 124,
    "g": 133,
    "b": 34
  },
  "hsl": {
    "h": 65.455,
    "s": 59.281,
    "l": 32.745
  },
  "oklch": {
    "l": 0.59043,
    "c": 0.11953,
    "h": 114.7
  },
  "luminance": 0.21176
}

Semantic roles & 50–950 ramp

primary
#7C8522
secondary
#574DB6
accent
#45E254
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7C8522

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

Preview Lab → · Contrast checker → · Palette generator →

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