#7F8525#7F8525

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

Color values

HEX#7F8525
RGBrgb(127, 133, 37)
HSLhsl(64, 56%, 33%)
HSVhsv(64, 72%, 52%)
CMYKcmyk(4.5%, 0%, 72.2%, 47.8%)
CIE-LABlab(53.41, -14.86, 48.22)
CIE-LCHlch(53.41, 50.46, 107.13°)
OKLaboklab(59.32% -0.0455 0.1074)
OKLCHoklch(59.32% 0.117 113)
XYZxyz(17.4744, 21.4210, 4.9641)
Luminance0.2142 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8525 #2B2585
analogous
#855B25 #7F8525 #4F8525
triadic
#7F8525 #257F85 #85257F
tetradic
#7F8525 #25855B #2B2585 #85254F
square
#7F8525 #25855B #2B2585 #85254F
split-complementary
#7F8525 #254F85 #5B2585
monochromatic
#24250A #515518 #7F8525 #ADB532 #C8D055

Accessibility & contrast

On white

3.97
#7F8525 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F8525#FFFFFF#000000##000000
##7F85251.003.975.285.28
#FFFFFF3.971.0021.0021.00
#0000005.2821.001.001.00
##0000005.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7F15
Deuteranopia (green-blind)
#8F812C
Tritanopia (blue-blind)
#887D72
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #7f8525;
/* rgb */ color: rgb(127, 133, 37);
/* oklch */ color: oklch(59.3% 0.117 113.0);
Tailwind
colors: {
  custom: {
    50: '#a7a866',
    500: '#7f8525',
    950: '#000000',
  },
}
SCSS
$custom: #7f8525;
$custom-light: #a7a866;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8525",
  "rgb": {
    "r": 127,
    "g": 133,
    "b": 37
  },
  "hsl": {
    "h": 63.75,
    "s": 56.471,
    "l": 33.333
  },
  "oklch": {
    "l": 0.59323,
    "c": 0.11662,
    "h": 113
  },
  "luminance": 0.21421
}

Semantic roles & 50–950 ramp

primary
#7F8525
secondary
#5852B4
accent
#48E052
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7F8525

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

Preview Lab → · Contrast checker → · Palette generator →

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