#A7B228#A7B228

#A7B228 is a light, vivid yellow. Relative luminance 0.402; OKLCH L 73.1% C 0.153 H 114.3°. Best body text is #000000 at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#A7B228
RGBrgb(167, 178, 40)
HSLhsl(65, 63%, 43%)
HSVhsv(65, 78%, 70%)
CMYKcmyk(6.2%, 0%, 77.5%, 30.2%)
CIE-LABlab(69.62, -20.34, 63.61)
CIE-LCHlch(69.62, 66.78, 107.73°)
OKLaboklab(73.11% -0.0627 0.1391)
OKLCHoklch(73.11% 0.153 114.3)
XYZxyz(32.2407, 40.2101, 8.0700)
Luminance0.4021 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A7B228 #3328B2
analogous
#B27828 #A7B228 #62B228
triadic
#A7B228 #28A7B2 #B228A7
tetradic
#A7B228 #28B278 #3328B2 #B22862
square
#A7B228 #28B278 #3328B2 #B22862
split-complementary
#A7B228 #2862B2 #7828B2
monochromatic
#494E12 #78801D #A7B228 #C9D543 #D7E075

Accessibility & contrast

On white

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

On black

9.04
#A7B228 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A7B228
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A7B228#FFFFFF#000000##000000
##A7B2281.002.329.049.04
#FFFFFF2.321.0021.0021.00
#0000009.0421.001.001.00
##0000009.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#BFA900
Deuteranopia (green-blind)
#BFAB35
Tritanopia (blue-blind)
#B2A798
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #a7b228;
/* rgb */ color: rgb(167, 178, 40);
/* oklch */ color: oklch(73.1% 0.153 114.3);
Tailwind
colors: {
  custom: {
    50: '#c5c86e',
    500: '#a7b228',
    950: '#000000',
  },
}
SCSS
$custom: #a7b228;
$custom-light: #c5c86e;
$custom-dark: #000000;
JSON
{
  "hex": "#a7b228",
  "rgb": {
    "r": 167,
    "g": 178,
    "b": 40
  },
  "hsl": {
    "h": 64.783,
    "s": 63.303,
    "l": 42.745
  },
  "oklch": {
    "l": 0.73113,
    "c": 0.15257,
    "h": 114.3
  },
  "luminance": 0.40209
}

Semantic roles & 50–950 ramp

primary
#A7B228
secondary
#766FC7
accent
#41E64F
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131308
muted
#82827B

Preview Lab

Preview with #A7B228

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

Preview Lab → · Contrast checker → · Palette generator →

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