#AFB62E#AFB62E

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

Color values

HEX#AFB62E
RGBrgb(175, 182, 46)
HSLhsl(63, 60%, 45%)
HSVhsv(63, 75%, 71%)
CMYKcmyk(3.8%, 0%, 74.7%, 28.6%)
CIE-LABlab(71.40, -18.67, 63.56)
CIE-LCHlch(71.40, 66.25, 106.37°)
OKLaboklab(74.7% -0.058 0.1398)
OKLCHoklch(74.7% 0.151 112.5)
XYZxyz(34.9014, 42.7679, 9.0008)
Luminance0.4277 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB62E #352EB6
analogous
#B6792E #AFB62E #6BB62E
triadic
#AFB62E #2EAFB6 #B62EAF
tetradic
#AFB62E #2EB679 #352EB6 #B62E6B
square
#AFB62E #2EB679 #352EB6 #B62E6B
split-complementary
#AFB62E #2E6BB6 #792EB6
monochromatic
#515415 #808522 #AFB62E #CCD24F #DADF80

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #afb62e;
/* rgb */ color: rgb(175, 182, 46);
/* oklch */ color: oklch(74.7% 0.151 112.5);
Tailwind
colors: {
  custom: {
    50: '#cacb71',
    500: '#afb62e',
    950: '#000000',
  },
}
SCSS
$custom: #afb62e;
$custom-light: #cacb71;
$custom-dark: #000000;
JSON
{
  "hex": "#afb62e",
  "rgb": {
    "r": 175,
    "g": 182,
    "b": 46
  },
  "hsl": {
    "h": 63.088,
    "s": 59.649,
    "l": 44.706
  },
  "oklch": {
    "l": 0.74702,
    "c": 0.15133,
    "h": 112.5
  },
  "luminance": 0.42767
}

Semantic roles & 50–950 ramp

primary
#AFB62E
secondary
#7C78C8
accent
#45E34D
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141308
muted
#82827B

Preview Lab

Preview with #AFB62E

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

Preview Lab → · Contrast checker → · Palette generator →

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