#798227#798227

#798227 is a mid, moderate yellow. Relative luminance 0.202; OKLCH L 58.1% C 0.114 H 114.9°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#798227
RGBrgb(121, 130, 39)
HSLhsl(66, 54%, 33%)
HSVhsv(66, 70%, 51%)
CMYKcmyk(6.9%, 0%, 70%, 49%)
CIE-LABlab(52.04, -15.84, 45.88)
CIE-LCHlch(52.04, 48.54, 109.05°)
OKLaboklab(58.11% -0.0477 0.103)
OKLCHoklch(58.11% 0.114 114.9)
XYZxyz(16.2344, 20.1770, 4.9584)
Luminance0.2018 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798227 #302782
analogous
#825D27 #798227 #4B8227
triadic
#798227 #277982 #822779
tetradic
#798227 #27825D #302782 #82274B
square
#798227 #27825D #302782 #82274B
split-complementary
#798227 #274B82 #5D2782
monochromatic
#21240B #4D5319 #798227 #A5B135 #C1CD57

Accessibility & contrast

On white

4.17
#798227 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#798227 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798227
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798227#FFFFFF#000000##000000
##7982271.004.175.045.04
#FFFFFF4.171.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7B19
Deuteranopia (green-blind)
#8B7D2E
Tritanopia (blue-blind)
#817A70
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #798227;
/* rgb */ color: rgb(121, 130, 39);
/* oklch */ color: oklch(58.1% 0.114 114.9);
Tailwind
colors: {
  custom: {
    50: '#a2a667',
    500: '#798227',
    950: '#000000',
  },
}
SCSS
$custom: #798227;
$custom-light: #a2a667;
$custom-dark: #000000;
JSON
{
  "hex": "#798227",
  "rgb": {
    "r": 121,
    "g": 130,
    "b": 39
  },
  "hsl": {
    "h": 65.934,
    "s": 53.846,
    "l": 33.137
  },
  "oklch": {
    "l": 0.58108,
    "c": 0.1135,
    "h": 114.9
  },
  "luminance": 0.20177
}

Semantic roles & 50–950 ramp

primary
#798227
secondary
#5D53B1
accent
#4BDD59
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F0F06
muted
#7F7F7A

Preview Lab

Preview with #798227

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

Preview Lab → · Contrast checker → · Palette generator →

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