#7F8A35#7F8A35

#7F8A35 is a mid, moderate yellow. Relative luminance 0.229; OKLCH L 60.7% C 0.110 H 116.0°. Best body text is #000000 at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#7F8A35
RGBrgb(127, 138, 53)
HSLhsl(68, 45%, 37%)
HSVhsv(68, 62%, 54%)
CMYKcmyk(8%, 0%, 61.6%, 45.9%)
CIE-LABlab(55.02, -16.43, 43.00)
CIE-LCHlch(55.02, 46.03, 110.90°)
OKLaboklab(60.66% -0.0482 0.0989)
OKLCHoklch(60.66% 0.11 116)
XYZxyz(18.4838, 22.9463, 6.8228)
Luminance0.2295 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8A35 #40358A
analogous
#8A6B35 #7F8A35 #548A35
triadic
#7F8A35 #357F8A #8A357F
tetradic
#7F8A35 #358A6B #40358A #8A3554
square
#7F8A35 #358A6B #40358A #8A3554
split-complementary
#7F8A35 #35548A #6B358A
monochromatic
#2E3213 #565E24 #7F8A35 #A8B646 #BDC871

Accessibility & contrast

On white

3.76
#7F8A35 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.59
#7F8A35 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F8A35
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F8A35#FFFFFF#000000##000000
##7F8A351.003.765.595.59
#FFFFFF3.761.0021.0021.00
#0000005.5921.001.001.00
##0000005.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#93832B
Deuteranopia (green-blind)
#92843A
Tritanopia (blue-blind)
#878378
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #7f8a35;
/* rgb */ color: rgb(127, 138, 53);
/* oklch */ color: oklch(60.7% 0.110 116.0);
Tailwind
colors: {
  custom: {
    50: '#a6ac70',
    500: '#7f8a35',
    950: '#000000',
  },
}
SCSS
$custom: #7f8a35;
$custom-light: #a6ac70;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8a35",
  "rgb": {
    "r": 127,
    "g": 138,
    "b": 53
  },
  "hsl": {
    "h": 67.765,
    "s": 44.503,
    "l": 37.451
  },
  "oklch": {
    "l": 0.60655,
    "c": 0.11002,
    "h": 116
  },
  "luminance": 0.22946
}

Semantic roles & 50–950 ramp

primary
#7F8A35
secondary
#736AB1
accent
#54D464
background
#FAFAF6
surface
#F4F4EC
border
#CECEC7
text
#101008
muted
#7F7F7B

Preview Lab

Preview with #7F8A35

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

Preview Lab → · Contrast checker → · Palette generator →

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