#A8B227#A8B227

#A8B227 is a light, vivid yellow. Relative luminance 0.403; OKLCH L 73.2% C 0.153 H 113.9°. Best body text is #000000 at 9.06:1 contrast (WCAG AA passes).

Color values

HEX#A8B227
RGBrgb(168, 178, 39)
HSLhsl(64, 64%, 43%)
HSVhsv(64, 78%, 70%)
CMYKcmyk(5.6%, 0%, 78.1%, 30.2%)
CIE-LABlab(69.69, -19.95, 64.01)
CIE-LCHlch(69.69, 67.04, 107.31°)
OKLaboklab(73.19% -0.0618 0.1397)
OKLCHoklch(73.19% 0.153 113.9)
XYZxyz(32.4361, 40.3128, 7.9915)
Luminance0.4031 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8B227 #3127B2
analogous
#B27727 #A8B227 #62B227
triadic
#A8B227 #27A8B2 #B227A8
tetradic
#A8B227 #27B277 #3127B2 #B22762
square
#A8B227 #27B277 #3127B2 #B22762
split-complementary
#A8B227 #2762B2 #7727B2
monochromatic
#494E11 #79801C #A8B227 #CBD541 #D8E073

Accessibility & contrast

On white

2.32
#A8B227 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.06
#A8B227 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A8B227
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A8B227#FFFFFF#000000##000000
##A8B2271.002.329.069.06
#FFFFFF2.321.0021.0021.00
#0000009.0621.001.001.00
##0000009.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#C0A900
Deuteranopia (green-blind)
#BFAC34
Tritanopia (blue-blind)
#B4A798
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #a8b227;
/* rgb */ color: rgb(168, 178, 39);
/* oklch */ color: oklch(73.2% 0.153 113.9);
Tailwind
colors: {
  custom: {
    50: '#c6c86e',
    500: '#a8b227',
    950: '#000000',
  },
}
SCSS
$custom: #a8b227;
$custom-light: #c6c86e;
$custom-dark: #000000;
JSON
{
  "hex": "#a8b227",
  "rgb": {
    "r": 168,
    "g": 178,
    "b": 39
  },
  "hsl": {
    "h": 64.317,
    "s": 64.055,
    "l": 42.549
  },
  "oklch": {
    "l": 0.73189,
    "c": 0.15277,
    "h": 113.9
  },
  "luminance": 0.40312
}

Semantic roles & 50–950 ramp

primary
#A8B227
secondary
#746DC8
accent
#41E74D
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#131308
muted
#82827B

Preview Lab

Preview with #A8B227

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

Preview Lab → · Contrast checker → · Palette generator →

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