#7F8331#7F8331

#7F8331 is a mid, moderate yellow. Relative luminance 0.210; OKLCH L 59.0% C 0.105 H 111.8°. Best body text is #000000 at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#7F8331
RGBrgb(127, 131, 49)
HSLhsl(63, 46%, 35%)
HSVhsv(63, 63%, 51%)
CMYKcmyk(3.1%, 0%, 62.6%, 48.6%)
CIE-LABlab(52.91, -13.01, 42.56)
CIE-LCHlch(52.91, 44.51, 106.99°)
OKLaboklab(58.96% -0.039 0.0974)
OKLCHoklch(58.96% 0.105 111.8)
XYZxyz(17.4235, 20.9668, 6.0343)
Luminance0.2097 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8331 #353183
analogous
#835E31 #7F8331 #568331
triadic
#7F8331 #317F83 #83317F
tetradic
#7F8331 #31835E #353183 #833156
square
#7F8331 #31835E #353183 #833156
split-complementary
#7F8331 #315683 #5E3183
monochromatic
#292A10 #545620 #7F8331 #AAB042 #C2C668

Accessibility & contrast

On white

4.04
#7F8331 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.19
#7F8331 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F8331
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F8331#FFFFFF#000000##000000
##7F83311.004.045.195.19
#FFFFFF4.041.0021.0021.00
#0000005.1921.001.001.00
##0000005.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7D27
Deuteranopia (green-blind)
#8D7F36
Tritanopia (blue-blind)
#877B72
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #7f8331;
/* rgb */ color: rgb(127, 131, 49);
/* oklch */ color: oklch(59.0% 0.105 111.8);
Tailwind
colors: {
  custom: {
    50: '#a6a66d',
    500: '#7f8331',
    950: '#000000',
  },
}
SCSS
$custom: #7f8331;
$custom-light: #a6a66d;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8331",
  "rgb": {
    "r": 127,
    "g": 131,
    "b": 49
  },
  "hsl": {
    "h": 62.927,
    "s": 45.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.58959,
    "c": 0.10494,
    "h": 111.8
  },
  "luminance": 0.20966
}

Semantic roles & 50–950 ramp

primary
#7F8331
secondary
#6662AE
accent
#53D559
background
#FAFAF6
surface
#F4F4EC
border
#CECEC7
text
#100F07
muted
#7F7F7A

Preview Lab

Preview with #7F8331

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

Preview Lab → · Contrast checker → · Palette generator →

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