#AFB62A#AFB62A

#AFB62A is a light, vivid yellow. Relative luminance 0.427; OKLCH L 74.7% C 0.153 H 112.5°. Best body text is #000000 at 9.55:1 contrast (WCAG AA passes).

Color values

HEX#AFB62A
RGBrgb(175, 182, 42)
HSLhsl(63, 63%, 44%)
HSVhsv(63, 77%, 71%)
CMYKcmyk(3.8%, 0%, 76.9%, 28.6%)
CIE-LABlab(71.38, -18.84, 64.82)
CIE-LCHlch(71.38, 67.50, 106.20°)
OKLaboklab(74.68% -0.0588 0.1417)
OKLCHoklch(74.68% 0.153 112.5)
XYZxyz(34.8262, 42.7379, 8.6047)
Luminance0.4274 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB62A #312AB6
analogous
#B6772A #AFB62A #69B62A
triadic
#AFB62A #2AAFB6 #B62AAF
tetradic
#AFB62A #2AB677 #312AB6 #B62A69
square
#AFB62A #2AB677 #312AB6 #B62A69
split-complementary
#AFB62A #2A69B6 #772AB6
monochromatic
#4F5313 #7F841F #AFB62A #CED548 #DBE07A

Accessibility & contrast

On white

2.20
#AFB62A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.55
#AFB62A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB62A
9.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB62A#FFFFFF#000000##000000
##AFB62A1.002.209.559.55
#FFFFFF2.201.0021.0021.00
#0000009.5521.001.001.00
##0000009.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#C4AD01
Deuteranopia (green-blind)
#C4B036
Tritanopia (blue-blind)
#BBAB9C
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #afb62a;
/* rgb */ color: rgb(175, 182, 42);
/* oklch */ color: oklch(74.7% 0.153 112.5);
Tailwind
colors: {
  custom: {
    50: '#cbcb70',
    500: '#afb62a',
    950: '#000000',
  },
}
SCSS
$custom: #afb62a;
$custom-light: #cbcb70;
$custom-dark: #000000;
JSON
{
  "hex": "#afb62a",
  "rgb": {
    "r": 175,
    "g": 182,
    "b": 42
  },
  "hsl": {
    "h": 63,
    "s": 62.5,
    "l": 43.922
  },
  "oklch": {
    "l": 0.74679,
    "c": 0.15345,
    "h": 112.5
  },
  "luminance": 0.42737
}

Semantic roles & 50–950 ramp

primary
#AFB62A
secondary
#7873C8
accent
#42E64A
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141308
muted
#82827B

Preview Lab

Preview with #AFB62A

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

Preview Lab → · Contrast checker → · Palette generator →

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