#7F862A#7F862A

#7F862A is a mid, moderate yellow. Relative luminance 0.217; OKLCH L 59.6% C 0.114 H 113.6°. Best body text is #000000 at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#7F862A
RGBrgb(127, 134, 42)
HSLhsl(65, 52%, 35%)
HSVhsv(65, 69%, 53%)
CMYKcmyk(5.2%, 0%, 68.7%, 47.5%)
CIE-LABlab(53.74, -15.09, 46.52)
CIE-LCHlch(53.74, 48.91, 107.97°)
OKLaboklab(59.6% -0.0457 0.1047)
OKLCHoklch(59.6% 0.114 113.6)
XYZxyz(17.6959, 21.7297, 5.4521)
Luminance0.2173 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F862A #312A86
analogous
#865F2A #7F862A #51862A
triadic
#7F862A #2A7F86 #862A7F
tetradic
#7F862A #2A865F #312A86 #862A51
square
#7F862A #2A865F #312A86 #862A51
split-complementary
#7F862A #2A5186 #5F2A86
monochromatic
#27290D #53571B #7F862A #ABB539 #C4CD5E

Accessibility & contrast

On white

3.93
#7F862A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.35
#7F862A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F862A
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F862A#FFFFFF#000000##000000
##7F862A1.003.935.355.35
#FFFFFF3.931.0021.0021.00
#0000005.3521.001.001.00
##0000005.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#90801D
Deuteranopia (green-blind)
#908131
Tritanopia (blue-blind)
#877E73
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #7f862a;
/* rgb */ color: rgb(127, 134, 42);
/* oklch */ color: oklch(59.6% 0.114 113.6);
Tailwind
colors: {
  custom: {
    50: '#a7a969',
    500: '#7f862a',
    950: '#000000',
  },
}
SCSS
$custom: #7f862a;
$custom-light: #a7a969;
$custom-dark: #000000;
JSON
{
  "hex": "#7f862a",
  "rgb": {
    "r": 127,
    "g": 134,
    "b": 42
  },
  "hsl": {
    "h": 64.565,
    "s": 52.273,
    "l": 34.51
  },
  "oklch": {
    "l": 0.59601,
    "c": 0.1142,
    "h": 113.6
  },
  "luminance": 0.21729
}

Semantic roles & 50–950 ramp

primary
#7F862A
secondary
#605AB2
accent
#4CDC57
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F07
muted
#7F7F7A

Preview Lab

Preview with #7F862A

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

Preview Lab → · Contrast checker → · Palette generator →

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