#AFB23F#AFB23F

#AFB23F is a light, vivid yellow. Relative luminance 0.413; OKLCH L 73.9% C 0.136 H 110.7°. Best body text is #000000 at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#AFB23F
RGBrgb(175, 178, 63)
HSLhsl(62, 48%, 47%)
HSVhsv(62, 65%, 70%)
CMYKcmyk(1.7%, 0%, 64.6%, 30.2%)
CIE-LABlab(70.40, -15.74, 56.21)
CIE-LCHlch(70.40, 58.37, 105.64°)
OKLaboklab(73.94% -0.0481 0.1271)
OKLCHoklch(73.94% 0.136 110.7)
XYZxyz(34.4978, 41.3145, 10.8589)
Luminance0.4131 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB23F #423FB2
analogous
#B27B3F #AFB23F #76B23F
triadic
#AFB23F #3FAFB2 #B23FAF
tetradic
#AFB23F #3FB27B #423FB2 #B23F76
square
#AFB23F #3FB27B #423FB2 #B23F76
split-complementary
#AFB23F #3F76B2 #7B3FB2
monochromatic
#56581F #83852F #AFB23F #C6C966 #D7D993

Accessibility & contrast

On white

2.27
#AFB23F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.26
#AFB23F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB23F
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB23F#FFFFFF#000000##000000
##AFB23F1.002.279.269.26
#FFFFFF2.271.0021.0021.00
#0000009.2621.001.001.00
##0000009.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#BFAA30
Deuteranopia (green-blind)
#C0AE47
Tritanopia (blue-blind)
#BBA79A
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #afb23f;
/* rgb */ color: rgb(175, 178, 63);
/* oklch */ color: oklch(73.9% 0.136 110.7);
Tailwind
colors: {
  custom: {
    50: '#cac87a',
    500: '#afb23f',
    950: '#000000',
  },
}
SCSS
$custom: #afb23f;
$custom-light: #cac87a;
$custom-dark: #000000;
JSON
{
  "hex": "#afb23f",
  "rgb": {
    "r": 175,
    "g": 178,
    "b": 63
  },
  "hsl": {
    "h": 61.565,
    "s": 47.718,
    "l": 47.255
  },
  "oklch": {
    "l": 0.73937,
    "c": 0.13595,
    "h": 110.7
  },
  "luminance": 0.41314
}

Semantic roles & 50–950 ramp

primary
#AFB23F
secondary
#8A89C4
accent
#50D754
background
#FCFCF7
surface
#F9F8EE
border
#D2D1C9
text
#14130A
muted
#82827C

Preview Lab

Preview with #AFB23F

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

Preview Lab → · Contrast checker → · Palette generator →

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