#7F8522#7F8522

#7F8522 is a mid, moderate yellow. Relative luminance 0.214; OKLCH L 59.3% C 0.119 H 113.0°. Best body text is #000000 at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#7F8522
RGBrgb(127, 133, 34)
HSLhsl(64, 59%, 33%)
HSVhsv(64, 74%, 52%)
CMYKcmyk(4.5%, 0%, 74.4%, 47.8%)
CIE-LABlab(53.39, -15.02, 49.35)
CIE-LCHlch(53.39, 51.58, 106.93°)
OKLaboklab(59.3% -0.0463 0.1092)
OKLCHoklch(59.3% 0.119 113)
XYZxyz(17.4292, 21.4030, 4.7261)
Luminance0.2140 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8522 #282285
analogous
#855922 #7F8522 #4E8522
triadic
#7F8522 #227F85 #85227F
tetradic
#7F8522 #228559 #282285 #85224E
square
#7F8522 #228559 #282285 #85224E
split-complementary
#7F8522 #224E85 #592285
monochromatic
#222409 #505416 #7F8522 #AEB62E #CAD24F

Accessibility & contrast

On white

3.98
#7F8522 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.28
#7F8522 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F8522
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F8522#FFFFFF#000000##000000
##7F85221.003.985.285.28
#FFFFFF3.981.0021.0021.00
#0000005.2821.001.001.00
##0000005.2821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f8522;
/* rgb */ color: rgb(127, 133, 34);
/* oklch */ color: oklch(59.3% 0.119 113.0);
Tailwind
colors: {
  custom: {
    50: '#a7a865',
    500: '#7f8522',
    950: '#000000',
  },
}
SCSS
$custom: #7f8522;
$custom-light: #a7a865;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8522",
  "rgb": {
    "r": 127,
    "g": 133,
    "b": 34
  },
  "hsl": {
    "h": 63.636,
    "s": 59.281,
    "l": 32.745
  },
  "oklch": {
    "l": 0.59302,
    "c": 0.1186,
    "h": 113
  },
  "luminance": 0.21403
}

Semantic roles & 50–950 ramp

primary
#7F8522
secondary
#544DB6
accent
#45E24F
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7F8522

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

Preview Lab → · Contrast checker → · Palette generator →

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