#7F8530#7F8530

#7F8530 is a mid, moderate yellow. Relative luminance 0.215; OKLCH L 59.4% C 0.108 H 113.1°. Best body text is #000000 at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#7F8530
RGBrgb(127, 133, 48)
HSLhsl(64, 47%, 35%)
HSVhsv(64, 64%, 52%)
CMYKcmyk(4.5%, 0%, 63.9%, 47.8%)
CIE-LABlab(53.49, -14.15, 43.65)
CIE-LCHlch(53.49, 45.88, 107.97°)
OKLaboklab(59.42% -0.0424 0.0996)
OKLCHoklch(59.42% 0.108 113.1)
XYZxyz(17.6739, 21.5008, 6.0148)
Luminance0.2150 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8530 #363085
analogous
#856030 #7F8530 #548530
triadic
#7F8530 #307F85 #85307F
tetradic
#7F8530 #308560 #363085 #853054
square
#7F8530 #308560 #363085 #853054
split-complementary
#7F8530 #305485 #603085
monochromatic
#292B10 #545820 #7F8530 #AAB240 #C1C867

Accessibility & contrast

On white

3.96
#7F8530 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.30
#7F8530 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F8530
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F8530#FFFFFF#000000##000000
##7F85301.003.965.305.30
#FFFFFF3.961.0021.0021.00
#0000005.3021.001.001.00
##0000005.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7F26
Deuteranopia (green-blind)
#8F8135
Tritanopia (blue-blind)
#877D73
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #7f8530;
/* rgb */ color: rgb(127, 133, 48);
/* oklch */ color: oklch(59.4% 0.108 113.1);
Tailwind
colors: {
  custom: {
    50: '#a6a86d',
    500: '#7f8530',
    950: '#000000',
  },
}
SCSS
$custom: #7f8530;
$custom-light: #a6a86d;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8530",
  "rgb": {
    "r": 127,
    "g": 133,
    "b": 48
  },
  "hsl": {
    "h": 64.235,
    "s": 46.961,
    "l": 35.49
  },
  "oklch": {
    "l": 0.5942,
    "c": 0.10819,
    "h": 113.1
  },
  "luminance": 0.215
}

Semantic roles & 50–950 ramp

primary
#7F8530
secondary
#6761AF
accent
#51D75B
background
#FAFAF6
surface
#F4F4EC
border
#CECEC7
text
#100F07
muted
#7F7F7A

Preview Lab

Preview with #7F8530

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

Preview Lab → · Contrast checker → · Palette generator →

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