#AFB62D#AFB62D

#AFB62D 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#AFB62D
RGBrgb(175, 182, 45)
HSLhsl(63, 60%, 45%)
HSVhsv(63, 75%, 71%)
CMYKcmyk(3.8%, 0%, 75.3%, 28.6%)
CIE-LABlab(71.39, -18.71, 63.88)
CIE-LCHlch(71.39, 66.57, 106.32°)
OKLaboklab(74.7% -0.0582 0.1403)
OKLCHoklch(74.7% 0.152 112.5)
XYZxyz(34.8819, 42.7601, 8.8981)
Luminance0.4276 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB62D #342DB6
analogous
#B6792D #AFB62D #6AB62D
triadic
#AFB62D #2DAFB6 #B62DAF
tetradic
#AFB62D #2DB679 #342DB6 #B62D6A
square
#AFB62D #2DB679 #342DB6 #B62D6A
split-complementary
#AFB62D #2D6AB6 #792DB6
monochromatic
#515415 #808521 #AFB62D #CCD34D #DADF7E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFB62D#FFFFFF#000000##000000
##AFB62D1.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)
#C4AD0B
Deuteranopia (green-blind)
#C4B039
Tritanopia (blue-blind)
#BBAB9C
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #afb62d;
/* rgb */ color: rgb(175, 182, 45);
/* oklch */ color: oklch(74.7% 0.152 112.5);
Tailwind
colors: {
  custom: {
    50: '#cacb71',
    500: '#afb62d',
    950: '#000000',
  },
}
SCSS
$custom: #afb62d;
$custom-light: #cacb71;
$custom-dark: #000000;
JSON
{
  "hex": "#afb62d",
  "rgb": {
    "r": 175,
    "g": 182,
    "b": 45
  },
  "hsl": {
    "h": 63.066,
    "s": 60.352,
    "l": 44.51
  },
  "oklch": {
    "l": 0.74696,
    "c": 0.15187,
    "h": 112.5
  },
  "luminance": 0.42759
}

Semantic roles & 50–950 ramp

primary
#AFB62D
secondary
#7B77C8
accent
#44E34C
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141308
muted
#82827B

Preview Lab

Preview with #AFB62D

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

Preview Lab → · Contrast checker → · Palette generator →

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