#797F1C#797F1C

#797F1C is a mid, moderate yellow. Relative luminance 0.193; OKLCH L 57.3% C 0.117 H 113.1°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#797F1C
RGBrgb(121, 127, 28)
HSLhsl(64, 64%, 30%)
HSVhsv(64, 78%, 50%)
CMYKcmyk(4.7%, 0%, 78%, 50.2%)
CIE-LABlab(51.07, -14.84, 49.13)
CIE-LCHlch(51.07, 51.33, 106.80°)
OKLaboklab(57.31% -0.046 0.1078)
OKLCHoklch(57.31% 0.117 113.1)
XYZxyz(15.6846, 19.3279, 4.0028)
Luminance0.1933 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797F1C #221C7F
analogous
#7F531C #797F1C #487F1C
triadic
#797F1C #1C797F #7F1C79
tetradic
#797F1C #1C7F53 #221C7F #7F1C48
square
#797F1C #1C7F53 #221C7F #7F1C48
split-complementary
#797F1C #1C487F #531C7F
monochromatic
#191B06 #494D11 #797F1C #A9B127 #CCD540

Accessibility & contrast

On white

4.32
#797F1C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#797F1C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797F1C
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797F1C#FFFFFF#000000##000000
##797F1C1.004.324.874.87
#FFFFFF4.321.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#897904
Deuteranopia (green-blind)
#897B25
Tritanopia (blue-blind)
#82776C
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #797f1c;
/* rgb */ color: rgb(121, 127, 28);
/* oklch */ color: oklch(57.3% 0.117 113.1);
Tailwind
colors: {
  custom: {
    50: '#a3a361',
    500: '#797f1c',
    950: '#000000',
  },
}
SCSS
$custom: #797f1c;
$custom-light: #a3a361;
$custom-dark: #000000;
JSON
{
  "hex": "#797f1c",
  "rgb": {
    "r": 121,
    "g": 127,
    "b": 28
  },
  "hsl": {
    "h": 63.636,
    "s": 63.871,
    "l": 30.392
  },
  "oklch": {
    "l": 0.57309,
    "c": 0.11723,
    "h": 113.1
  },
  "luminance": 0.19328
}

Semantic roles & 50–950 ramp

primary
#797F1C
secondary
#4B44B3
accent
#41E74B
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#0F0F05
muted
#7F7F7A

Preview Lab

Preview with #797F1C

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

Preview Lab → · Contrast checker → · Palette generator →

#797F1C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva