#AFB62B#AFB62B

#AFB62B 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#AFB62B
RGBrgb(175, 182, 43)
HSLhsl(63, 62%, 44%)
HSVhsv(63, 76%, 71%)
CMYKcmyk(3.8%, 0%, 76.4%, 28.6%)
CIE-LABlab(71.38, -18.79, 64.52)
CIE-LCHlch(71.38, 67.20, 106.24°)
OKLaboklab(74.69% -0.0586 0.1413)
OKLCHoklch(74.69% 0.153 112.5)
XYZxyz(34.8443, 42.7451, 8.7001)
Luminance0.4274 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB62B #322BB6
analogous
#B6782B #AFB62B #69B62B
triadic
#AFB62B #2BAFB6 #B62BAF
tetradic
#AFB62B #2BB678 #322BB6 #B62B69
square
#AFB62B #2BB678 #322BB6 #B62B69
split-complementary
#AFB62B #2B69B6 #782BB6
monochromatic
#505314 #7F841F #AFB62B #CDD44A #DBE07B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFB62B#FFFFFF#000000##000000
##AFB62B1.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)
#C4AD04
Deuteranopia (green-blind)
#C4B037
Tritanopia (blue-blind)
#BBAB9C
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #afb62b;
/* rgb */ color: rgb(175, 182, 43);
/* oklch */ color: oklch(74.7% 0.153 112.5);
Tailwind
colors: {
  custom: {
    50: '#cbcb70',
    500: '#afb62b',
    950: '#000000',
  },
}
SCSS
$custom: #afb62b;
$custom-light: #cbcb70;
$custom-dark: #000000;
JSON
{
  "hex": "#afb62b",
  "rgb": {
    "r": 175,
    "g": 182,
    "b": 43
  },
  "hsl": {
    "h": 63.022,
    "s": 61.778,
    "l": 44.118
  },
  "oklch": {
    "l": 0.74685,
    "c": 0.15293,
    "h": 112.5
  },
  "luminance": 0.42744
}

Semantic roles & 50–950 ramp

primary
#AFB62B
secondary
#7975C8
accent
#43E54B
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141308
muted
#82827B

Preview Lab

Preview with #AFB62B

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

Preview Lab → · Contrast checker → · Palette generator →

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