#798111#798111

#798111 is a mid, vivid yellow. Relative luminance 0.198; OKLCH L 57.7% C 0.125 H 114.1°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#798111
RGBrgb(121, 129, 17)
HSLhsl(64, 77%, 29%)
HSVhsv(64, 87%, 51%)
CMYKcmyk(6.2%, 0%, 86.8%, 49.4%)
CIE-LABlab(51.62, -16.32, 52.88)
CIE-LCHlch(51.62, 55.34, 107.15°)
OKLaboklab(57.73% -0.0509 0.1138)
OKLCHoklch(57.73% 0.125 114.1)
XYZxyz(15.8371, 19.8063, 3.5189)
Luminance0.1981 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798111 #191181
analogous
#815111 #798111 #418111
triadic
#798111 #117981 #811179
tetradic
#798111 #118151 #191181 #811141
square
#798111 #118151 #191181 #811141
split-complementary
#798111 #114181 #511181
monochromatic
#191B04 #464B0A #798111 #ACB718 #D6E32A

Accessibility & contrast

On white

4.23
#798111 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#798111 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798111
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798111#FFFFFF#000000##000000
##7981111.004.234.964.96
#FFFFFF4.231.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7A00
Deuteranopia (green-blind)
#8B7C1D
Tritanopia (blue-blind)
#82796D
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #798111;
/* rgb */ color: rgb(121, 129, 17);
/* oklch */ color: oklch(57.7% 0.125 114.1);
Tailwind
colors: {
  custom: {
    50: '#a3a55d',
    500: '#798111',
    950: '#000000',
  },
}
SCSS
$custom: #798111;
$custom-light: #a3a55d;
$custom-dark: #000000;
JSON
{
  "hex": "#798111",
  "rgb": {
    "r": 121,
    "g": 129,
    "b": 17
  },
  "hsl": {
    "h": 64.286,
    "s": 76.712,
    "l": 28.627
  },
  "oklch": {
    "l": 0.57734,
    "c": 0.12469,
    "h": 114.1
  },
  "luminance": 0.19806
}

Semantic roles & 50–950 ramp

primary
#798111
secondary
#4037B7
accent
#35F342
background
#FAFAF5
surface
#F4F4E9
border
#CECEC5
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #798111

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

Preview Lab → · Contrast checker → · Palette generator →

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