#798118#798118

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

Color values

HEX#798118
RGBrgb(121, 129, 24)
HSLhsl(65, 69%, 30%)
HSVhsv(65, 81%, 51%)
CMYKcmyk(6.2%, 0%, 81.4%, 49.4%)
CIE-LABlab(51.65, -16.07, 50.96)
CIE-LCHlch(51.65, 53.44, 107.51°)
OKLaboklab(57.77% -0.0497 0.111)
OKLCHoklch(57.77% 0.122 114.1)
XYZxyz(15.9008, 19.8317, 3.8543)
Luminance0.1983 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798118 #201881
analogous
#815418 #798118 #458118
triadic
#798118 #187981 #811879
tetradic
#798118 #188154 #201881 #811845
square
#798118 #188154 #201881 #811845
split-complementary
#798118 #184581 #541881
monochromatic
#181A05 #494D0E #798118 #A9B522 #CEDA39

Accessibility & contrast

On white

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

On black

4.97
#798118 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798118
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798118#FFFFFF#000000##000000
##7981181.004.234.974.97
#FFFFFF4.231.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #798118;
/* rgb */ color: rgb(121, 129, 24);
/* oklch */ color: oklch(57.8% 0.122 114.1);
Tailwind
colors: {
  custom: {
    50: '#a3a560',
    500: '#798118',
    950: '#000000',
  },
}
SCSS
$custom: #798118;
$custom-light: #a3a560;
$custom-dark: #000000;
JSON
{
  "hex": "#798118",
  "rgb": {
    "r": 121,
    "g": 129,
    "b": 24
  },
  "hsl": {
    "h": 64.571,
    "s": 68.627,
    "l": 30
  },
  "oklch": {
    "l": 0.57766,
    "c": 0.12161,
    "h": 114.1
  },
  "luminance": 0.19831
}

Semantic roles & 50–950 ramp

primary
#798118
secondary
#4940B5
accent
#3CEB4A
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #798118

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

Preview Lab → · Contrast checker → · Palette generator →

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