#7F751C#7F751C

#7F751C is a mid, moderate yellow. Relative luminance 0.173; OKLCH L 55.5% C 0.106 H 102.7°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#7F751C
RGBrgb(127, 117, 28)
HSLhsl(54, 64%, 30%)
HSVhsv(54, 78%, 50%)
CMYKcmyk(0%, 7.9%, 78%, 50.2%)
CIE-LABlab(48.66, -6.57, 47.09)
CIE-LCHlch(48.66, 47.55, 97.95°)
OKLaboklab(55.52% -0.0232 0.1033)
OKLCHoklch(55.52% 0.106 102.7)
XYZxyz(15.3240, 17.3191, 3.6341)
Luminance0.1732 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F751C #1C267F
analogous
#7F431C #7F751C #587F1C
triadic
#7F751C #1C7F75 #751C7F
tetradic
#7F751C #1C7F43 #1C267F #7F1C58
square
#7F751C #1C7F43 #1C267F #7F1C58
split-complementary
#7F751C #1C587F #431C7F
monochromatic
#1B1906 #4D4711 #7F751C #B1A327 #D5C640

Accessibility & contrast

On white

4.70
#7F751C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#7F751C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F751C
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F751C#FFFFFF#000000##FFFFFF
##7F751C1.004.704.464.70
#FFFFFF4.701.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807109
Deuteranopia (green-blind)
#837622
Tritanopia (blue-blind)
#896C64
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #7f751c;
/* rgb */ color: rgb(127, 117, 28);
/* oklch */ color: oklch(55.5% 0.106 102.7);
Tailwind
colors: {
  custom: {
    50: '#a79c60',
    500: '#7f751c',
    950: '#000000',
  },
}
SCSS
$custom: #7f751c;
$custom-light: #a79c60;
$custom-dark: #000000;
JSON
{
  "hex": "#7f751c",
  "rgb": {
    "r": 127,
    "g": 117,
    "b": 28
  },
  "hsl": {
    "h": 53.939,
    "s": 63.871,
    "l": 30.392
  },
  "oklch": {
    "l": 0.55517,
    "c": 0.10583,
    "h": 102.7
  },
  "luminance": 0.17318
}

Semantic roles & 50–950 ramp

primary
#7F751C
secondary
#444FB3
accent
#52E741
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7F751C

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

Preview Lab → · Contrast checker → · Palette generator →

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