#AFB62C#AFB62C

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

Color values

HEX#AFB62C
RGBrgb(175, 182, 44)
HSLhsl(63, 61%, 44%)
HSVhsv(63, 76%, 71%)
CMYKcmyk(3.8%, 0%, 75.8%, 28.6%)
CIE-LABlab(71.39, -18.75, 64.20)
CIE-LCHlch(71.39, 66.88, 106.28°)
OKLaboklab(74.69% -0.0584 0.1408)
OKLCHoklch(74.69% 0.152 112.5)
XYZxyz(34.8629, 42.7525, 8.7980)
Luminance0.4275 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB62C #332CB6
analogous
#B6782C #AFB62C #6AB62C
triadic
#AFB62C #2CAFB6 #B62CAF
tetradic
#AFB62C #2CB678 #332CB6 #B62C6A
square
#AFB62C #2CB678 #332CB6 #B62C6A
split-complementary
#AFB62C #2C6AB6 #782CB6
monochromatic
#505314 #808520 #AFB62C #CDD44C #DBE07D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFB62C#FFFFFF#000000##000000
##AFB62C1.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)
#C4AD08
Deuteranopia (green-blind)
#C4B038
Tritanopia (blue-blind)
#BBAB9C
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #afb62c;
/* rgb */ color: rgb(175, 182, 44);
/* oklch */ color: oklch(74.7% 0.152 112.5);
Tailwind
colors: {
  custom: {
    50: '#cbcb70',
    500: '#afb62c',
    950: '#000000',
  },
}
SCSS
$custom: #afb62c;
$custom-light: #cbcb70;
$custom-dark: #000000;
JSON
{
  "hex": "#afb62c",
  "rgb": {
    "r": 175,
    "g": 182,
    "b": 44
  },
  "hsl": {
    "h": 63.043,
    "s": 61.062,
    "l": 44.314
  },
  "oklch": {
    "l": 0.74691,
    "c": 0.15241,
    "h": 112.5
  },
  "luminance": 0.42752
}

Semantic roles & 50–950 ramp

primary
#AFB62C
secondary
#7A76C8
accent
#44E44C
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141308
muted
#82827B

Preview Lab

Preview with #AFB62C

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

Preview Lab → · Contrast checker → · Palette generator →

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