#798A1E#798A1E

#798A1E is a mid, vivid yellow. Relative luminance 0.223; OKLCH L 60.0% C 0.129 H 118.5°. Best body text is #000000 at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#798A1E
RGBrgb(121, 138, 30)
HSLhsl(69, 64%, 33%)
HSVhsv(69, 78%, 54%)
CMYKcmyk(12.3%, 0%, 78.3%, 45.9%)
CIE-LABlab(54.38, -20.51, 51.53)
CIE-LCHlch(54.38, 55.46, 111.70°)
OKLaboklab(59.97% -0.0615 0.1133)
OKLCHoklch(59.97% 0.129 118.5)
XYZxyz(17.2084, 22.3358, 4.6327)
Luminance0.2234 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798A1E #2F1E8A
analogous
#8A651E #798A1E #438A1E
triadic
#798A1E #1E798A #8A1E79
tetradic
#798A1E #1E8A65 #2F1E8A #8A1E43
square
#798A1E #1E8A65 #2F1E8A #8A1E43
split-complementary
#798A1E #1E438A #651E8A
monochromatic
#212508 #4D5813 #798A1E #A5BC29 #C2D84B

Accessibility & contrast

On white

3.84
#798A1E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.47
#798A1E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798A1E
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798A1E#FFFFFF#000000##000000
##798A1E1.003.845.475.47
#FFFFFF3.841.0021.0021.00
#0000005.4721.001.001.00
##0000005.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#948202
Deuteranopia (green-blind)
#928228
Tritanopia (blue-blind)
#818276
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #798a1e;
/* rgb */ color: rgb(121, 138, 30);
/* oklch */ color: oklch(60.0% 0.129 118.5);
Tailwind
colors: {
  custom: {
    50: '#a3ac63',
    500: '#798a1e',
    950: '#000000',
  },
}
SCSS
$custom: #798a1e;
$custom-light: #a3ac63;
$custom-dark: #000000;
JSON
{
  "hex": "#798a1e",
  "rgb": {
    "r": 121,
    "g": 138,
    "b": 30
  },
  "hsl": {
    "h": 69.444,
    "s": 64.286,
    "l": 32.941
  },
  "oklch": {
    "l": 0.59973,
    "c": 0.12889,
    "h": 118.5
  },
  "luminance": 0.22336
}

Semantic roles & 50–950 ramp

primary
#798A1E
secondary
#5B4ABA
accent
#41E75B
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1006
muted
#7F7F7A

Preview Lab

Preview with #798A1E

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

Preview Lab → · Contrast checker → · Palette generator →

#798A1E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva