#798026#798026

#798026 is a mid, moderate yellow. Relative luminance 0.196; OKLCH L 57.6% C 0.112 H 113.7°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#798026
RGBrgb(121, 128, 38)
HSLhsl(65, 54%, 33%)
HSVhsv(65, 70%, 50%)
CMYKcmyk(5.5%, 0%, 70.3%, 49.8%)
CIE-LABlab(51.43, -14.84, 45.69)
CIE-LCHlch(51.43, 48.03, 107.99°)
OKLaboklab(57.62% -0.045 0.1024)
OKLCHoklch(57.62% 0.112 113.7)
XYZxyz(15.9546, 19.6435, 4.7845)
Luminance0.1964 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798026 #2D2680
analogous
#805A26 #798026 #4C8026
triadic
#798026 #267980 #802679
tetradic
#798026 #26805A #2D2680 #80264C
square
#798026 #26805A #2D2680 #80264C
split-complementary
#798026 #264C80 #5A2680
monochromatic
#20220A #4C5118 #798026 #A6AF34 #C3CC54

Accessibility & contrast

On white

4.26
#798026 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.93
#798026 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798026
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798026#FFFFFF#000000##000000
##7980261.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7A18
Deuteranopia (green-blind)
#897B2D
Tritanopia (blue-blind)
#81786E
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #798026;
/* rgb */ color: rgb(121, 128, 38);
/* oklch */ color: oklch(57.6% 0.112 113.7);
Tailwind
colors: {
  custom: {
    50: '#a2a466',
    500: '#798026',
    950: '#000000',
  },
}
SCSS
$custom: #798026;
$custom-light: #a2a466;
$custom-dark: #000000;
JSON
{
  "hex": "#798026",
  "rgb": {
    "r": 121,
    "g": 128,
    "b": 38
  },
  "hsl": {
    "h": 64.667,
    "s": 54.217,
    "l": 32.549
  },
  "oklch": {
    "l": 0.57621,
    "c": 0.11185,
    "h": 113.7
  },
  "luminance": 0.19643
}

Semantic roles & 50–950 ramp

primary
#798026
secondary
#5851B1
accent
#4ADE56
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F0F06
muted
#7F7F7A

Preview Lab

Preview with #798026

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

Preview Lab → · Contrast checker → · Palette generator →

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