#7F8A33#7F8A33

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

Color values

HEX#7F8A33
RGBrgb(127, 138, 51)
HSLhsl(68, 46%, 37%)
HSVhsv(68, 63%, 54%)
CMYKcmyk(8%, 0%, 63%, 45.9%)
CIE-LABlab(55.00, -16.58, 43.90)
CIE-LCHlch(55.00, 46.93, 110.69°)
OKLaboklab(60.63% -0.0489 0.1005)
OKLCHoklch(60.63% 0.112 115.9)
XYZxyz(18.4388, 22.9282, 6.5856)
Luminance0.2293 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8A33 #3E338A
analogous
#8A6A33 #7F8A33 #548A33
triadic
#7F8A33 #337F8A #8A337F
tetradic
#7F8A33 #338A6A #3E338A #8A3354
square
#7F8A33 #338A6A #3E338A #8A3354
split-complementary
#7F8A33 #33548A #6A338A
monochromatic
#2D3112 #565D22 #7F8A33 #A8B744 #BEC96E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F8A33#FFFFFF#000000##000000
##7F8A331.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)
#938329
Deuteranopia (green-blind)
#928439
Tritanopia (blue-blind)
#878278
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #7f8a33;
/* rgb */ color: rgb(127, 138, 51);
/* oklch */ color: oklch(60.6% 0.112 115.9);
Tailwind
colors: {
  custom: {
    50: '#a6ac6f',
    500: '#7f8a33',
    950: '#000000',
  },
}
SCSS
$custom: #7f8a33;
$custom-light: #a6ac6f;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8a33",
  "rgb": {
    "r": 127,
    "g": 138,
    "b": 51
  },
  "hsl": {
    "h": 67.586,
    "s": 46.032,
    "l": 37.059
  },
  "oklch": {
    "l": 0.60634,
    "c": 0.11177,
    "h": 115.9
  },
  "luminance": 0.22928
}

Semantic roles & 50–950 ramp

primary
#7F8A33
secondary
#7167B1
accent
#52D663
background
#FAFAF6
surface
#F4F4EC
border
#CECEC7
text
#101007
muted
#7F7F7A

Preview Lab

Preview with #7F8A33

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

Preview Lab → · Contrast checker → · Palette generator →

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