#7F8025#7F8025

#7F8025 is a mid, moderate yellow. Relative luminance 0.201; OKLCH L 58.1% C 0.111 H 110.0°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#7F8025
RGBrgb(127, 128, 37)
HSLhsl(61, 55%, 32%)
HSVhsv(61, 71%, 50%)
CMYKcmyk(0.8%, 0%, 71.1%, 49.8%)
CIE-LABlab(51.93, -12.17, 46.76)
CIE-LCHlch(51.93, 48.32, 104.59°)
OKLaboklab(58.14% -0.038 0.1043)
OKLCHoklch(58.14% 0.111 110)
XYZxyz(16.8061, 20.0844, 4.7413)
Luminance0.2008 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8025 #262580
analogous
#805325 #7F8025 #528025
triadic
#7F8025 #257F80 #80257F
tetradic
#7F8025 #258053 #262580 #802552
square
#7F8025 #258053 #262580 #802552
split-complementary
#7F8025 #255280 #532580
monochromatic
#21210A #505117 #7F8025 #AEAF33 #CCCD52

Accessibility & contrast

On white

4.19
#7F8025 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#7F8025 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F8025
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F8025#FFFFFF#000000##000000
##7F80251.004.195.025.02
#FFFFFF4.191.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7A16
Deuteranopia (green-blind)
#8B7D2C
Tritanopia (blue-blind)
#88786E
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #7f8025;
/* rgb */ color: rgb(127, 128, 37);
/* oklch */ color: oklch(58.1% 0.111 110.0);
Tailwind
colors: {
  custom: {
    50: '#a7a466',
    500: '#7f8025',
    950: '#000000',
  },
}
SCSS
$custom: #7f8025;
$custom-light: #a7a466;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8025",
  "rgb": {
    "r": 127,
    "g": 128,
    "b": 37
  },
  "hsl": {
    "h": 60.659,
    "s": 55.152,
    "l": 32.353
  },
  "oklch": {
    "l": 0.58144,
    "c": 0.11101,
    "h": 110
  },
  "luminance": 0.20084
}

Semantic roles & 50–950 ramp

primary
#7F8025
secondary
#5150B1
accent
#49DE4B
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7F8025

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

Preview Lab → · Contrast checker → · Palette generator →

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