#797127#797127

#797127 is a mid, moderate yellow. Relative luminance 0.160; OKLCH L 54.1% C 0.095 H 103.1°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#797127
RGBrgb(121, 113, 39)
HSLhsl(54, 51%, 31%)
HSVhsv(54, 68%, 47%)
CMYKcmyk(0%, 6.6%, 67.8%, 52.5%)
CIE-LABlab(47.00, -6.52, 40.70)
CIE-LCHlch(47.00, 41.22, 99.11°)
OKLaboklab(54.09% -0.0215 0.0921)
OKLCHoklch(54.09% 0.095 103.1)
XYZxyz(14.1571, 16.0222, 4.2659)
Luminance0.1602 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797127 #272F79
analogous
#794827 #797127 #587927
triadic
#797127 #277971 #712779
tetradic
#797127 #277948 #272F79 #792758
square
#797127 #277948 #272F79 #792758
split-complementary
#797127 #275879 #482779
monochromatic
#1C1B09 #4B4618 #797127 #A79C36 #C8BC53

Accessibility & contrast

On white

4.99
#797127 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#797127 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #797127
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797127#FFFFFF#000000##FFFFFF
##7971271.004.994.204.99
#FFFFFF4.991.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6D1E
Deuteranopia (green-blind)
#7E712B
Tritanopia (blue-blind)
#826962
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #797127;
/* rgb */ color: rgb(121, 113, 39);
/* oklch */ color: oklch(54.1% 0.095 103.1);
Tailwind
colors: {
  custom: {
    50: '#a29965',
    500: '#797127',
    950: '#000000',
  },
}
SCSS
$custom: #797127;
$custom-light: #a29965;
$custom-dark: #000000;
JSON
{
  "hex": "#797127",
  "rgb": {
    "r": 121,
    "g": 113,
    "b": 39
  },
  "hsl": {
    "h": 54.146,
    "s": 51.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.5409,
    "c": 0.09453,
    "h": 103.1
  },
  "luminance": 0.16022
}

Semantic roles & 50–950 ramp

primary
#797127
secondary
#515AAB
accent
#5BDB4D
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0D06
muted
#7F7E7A

Preview Lab

Preview with #797127

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

Preview Lab → · Contrast checker → · Palette generator →

#797127 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva